- Clone this repo
- Copy the example .env
cp .env.example .env
- COOKIE should be the http header cookie from any xhr request on leetcode.com
- SOLUTIONS_PATH should be the full path to the directory where you want your solutions to live (mine are in this repo under src/solutions/)
- EDITOR should be the name of your editor executable (mine is
neovide
)
- Install with cargo install --path .
leetcode <search term>
Example for Two Sum
leetcode two sum
GNU General Public License v3.0