/leetcode

Primary LanguageRustGNU General Public License v3.0GPL-3.0

My Leet Code Solutions and tooling

Installation

  1. Clone this repo
  2. 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)
  3. Install with cargo install --path .

Usage

leetcode <search term>

Example for Two Sum

leetcode two sum

License

GNU General Public License v3.0