4 ms·
Show HN: Openleetcode – local LeetCode runner where tests live in the repo
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!
- chonghaoju 2mo agoKeeping test cases in the repo is the part that actually matters. I've lost hours to LeetCode silently changing edge cases between sessions.