Skip to content

A repo containing my LeetCode solutions.

Notifications You must be signed in to change notification settings

thomHayner/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

This is a repo of my LeetCode solutions. It is set to automatically sync with the LeetCode.com web application at 10:45 PM UTC every day.

Sync Leetcode

Automations

This repo uses the LeetCode Sync action from @joshcai, available on the GitHub Marketplace here.

More information on this workflow, and how to set one up for yourself, can be found in the original repo's README.md file, located here.

Caveats

After about 1 week, your LEETCODE_SESSION cookie will expire and LeetCode will automatically logs you...this leads to the the sync action failing with the following error code: TypeError: response.data.data.submissionList.submissions is not iterable

You will need to log back into LeetCode and use the Chrome Page Inspector to find your new LEETCODE_SESSION, then update your GitHub Actions Secrets with the new LEETCODE_SESSION cookie.

This issue has already been documented in the original workflow's issues page, here.

Setup Help and Troubleshooting

Finding your LeetCode Secrets (Aug 2024)

  1. Navigate to LeetCode and Log in
  2. Cmd+Opt+I to open your dev console (Mac / Chrome)
  3. Click on the "Application" tab
  4. Find your LeetCode secrets to copy and paste into GitHub leetcode_inspect_application

Adding you LeetCode Secrets to your GitHub repo

  1. Navigate to your GitHub repo
  2. On the top tab bar, click on the "Settings" tab
  3. On the left sidebar, click on the "Secrets and variables" dropdown
  4. Choose the "Actions" option
  5. Click on the "New repository secret" button
  6. Add your secrets settings_secrets_actions_newRepositorySecret

Job fails with error message: "HttpError: Resource not accessible by integration"

  1. Navigate to your GitHub repo
  2. On the top tab bar, click on the "Settings" tab
  3. On the left sidebar, click on the "Actions" dropdown
  4. Choose the "General" option
  5. Scroll down to the "Workflow permissions" section, choose the "Read and write permissions" radio button option
  6. Click on the "Save" button settings_actions_workflowPermissions

About

A repo containing my LeetCode solutions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published