Skip to content

satu0king/Leetcode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Solutions

I have solved around 1200 questions over 1 year. The recent most accepted solution can be found in the solutions folder.

How to extract leetcode solutions

  1. Install leetcode-cli by running npm install -g leetcode-cli
  2. Install Chrome Plugin by running leetcode plugin -i cookie.chrome
  3. Login using leetcode user -l -v. However if this doesn't work it is because Leetcode introduced reCaptcha. To overcome this, login normally using your browser and follow instructions here
  4. Goto https://leetcode.com/api/problems/all/ and download the json to metadata.json in the root directory. On chrome an easy way to do this is going to view-source:https://leetcode.com/api/problems/all/ and copy pasting the json data.
  5. Run python create_bash_script.py
  6. Run sh get_ac.sh

Statistics

Stats of solved problem Stats of solved problem graph

Credits

The code uses snippets from this article: https://www.foxerlee.top/2020/02/05/Leetcode-crawler/

About

My Submissions for over 1200 Leetcode Problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages