Skip to content

Spike-Leung/leetcode

Repository files navigation

A repository to store my LeetCode solutions.

Why

  • I can use a familiar editor (Emacs) to write the code.
  • I can write my own test cases using Jest for testing.
  • It encourages me to document the thought process during problem-solving.

Get Started

# Install dependencies
pnpm install

# Create problem folder and template
# Follow the prompts by plop, then a folder will be created under `solutions/problems/`
# This folder will contain `code.js`, `code.test.js`, and `README.org`.
# Write code in `code.js`, test it in `code.test.js`, and document your thought process in `README.org`.
pnpm problem

Web

You can view all solutions on leetcode solution, which displays code.js and README.org grouped by problem.

To run the web page, use the following script:

# Install dependencies
pnpm install

# Start the web server
pnpm run dev

Releases

No releases published

Packages

No packages published