back
▲ 4 points

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

github.com
by therepanic·22d ago·1 comments·view on hn ↗
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 comments
Keeping test cases in the repo is the part that actually matters. I've lost hours to LeetCode silently changing edge cases between sessions.