Settings

Theme

Show HN: Openleetcode – local LeetCode runner where tests live in the repo

github.com

4 points by therepanic · 1 comment · 1 min read

Reader

You write a standard solution, just like on LeetCode, and run it through the CLI. It identifies the problem by ID or title, executes your code against local test cases, and shows the result.

It currently supports around 1000 problems and multiple languages, including Python, C++, Rust, Java, Go, TypeScript, Swift, and others.

The project is still an MVP. System design, SQL, and concurrency problems are not supported yet, but support for more problem types is planned.

Made in Haskell!

1 thread
chonghaoju

Keeping test cases in the repo is the part that actually matters. I've lost hours to LeetCode silently changing edge cases between sessions.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection