| ▲ | Show HN: Openleetcode – local LeetCode runner where tests live in the repo(github.com) | |||||||
| 27 points by therepanic 4 hours ago | 11 comments | ||||||||
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 1.4k 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! | ||||||||
| ▲ | n738 12 minutes ago | parent | next [-] | |||||||
Over engineering at it's finest, supported my other people who will never actually use this. The whole point is the manual learning time. This is so counter intuitive it hurts. Move on from this project. | ||||||||
| ▲ | faxmeyourcode 25 minutes ago | parent | prev | next [-] | |||||||
Nice! The idea of having a friday leetcode problem for my team has been kicked around to try and keep us on our toes when it comes to solving these style problems and preventing atrophy of this part of our brain. Might try wrapping this cli in some kind of web ui or adding it to our slackbot | ||||||||
| ▲ | joshribakoff an hour ago | parent | prev | next [-] | |||||||
I just prompt my ai coding assistant directly to scaffold out problems and test cases. One nice thing is the LLM can “reason” about my weak areas and tailor the drills it generates next to keep me on a productive path. I personally don’t get much value from pulling in 1,400 arbitrary problems but this is cool for people who want to hit the ground running. | ||||||||
| ▲ | seagram an hour ago | parent | prev | next [-] | |||||||
What a great idea for a project. Will try out. Any thoughts on supporting a CLI (or TUI) interface for browsing through the problem sets locally (titles, descriptions, difficulty, etc.)? On that note, open to contributions? And much respect for choosing Haskell. | ||||||||
| ▲ | orsenthil 2 hours ago | parent | prev | next [-] | |||||||
Very cool. What motivated you to build this and what use case do you see for this project ? | ||||||||
| ||||||||
| ▲ | gaya3bollineni an hour ago | parent | prev | next [-] | |||||||
how do you keep the local test cases in sync when the original problems or test cases change? | ||||||||
| ||||||||
| ▲ | rfgplk 3 hours ago | parent | prev | next [-] | |||||||
The fact that this is written in Haskell is amazing in it of itself. Will try it out | ||||||||
| ||||||||
| ▲ | sam1r 2 hours ago | parent | prev [-] | |||||||
This is awesome! | ||||||||