Back to News
Advertisement
ttherepanic about 3 hours ago 2 commentsRead Article on github.com

DE version is available. Content is displayed in original English for accuracy.

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!

Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 176 words in the discussion.

Trending Topics

#open#build#tests#project#source#don#solutions#leetcode#locally#without

Discussion (2 Comments)Read Original on HackerNews

orsenthilabout 1 hour ago
Very cool. What motivated you to build this and what use case do you see for this project ?
therepanicabout 1 hour ago
I love open source and open systems in general. Popular competitive programming platforms aren't like that: not only is their source code closed, but they also don't publish the test cases used to evaluate submissions.

There are already projects that can submit your solutions through the LeetCode API and return the results. But I don't really like that approach, so I decided to build an open set of tests that aims to match the quality of LeetCode's tests as closely as possible. This way, you can run everything locally, without needing for example, an internet connection.

I see the project being useful for its most straightforward purpose: testing your solutions locally on your own hardware, without any submission delays and even completely offline. Since the tests are open, people can also build different tools around them. For example vim extensions and other integrations. Ofc it's not that simple, we currently support about 1400 problems (out of 4000~, including premium), and not all topics are covered.

rfgplkabout 2 hours ago
The fact that this is written in Haskell is amazing in it of itself. Will try it out
jnpnj18 minutes ago
so the final challenge is to try to print a string ? ;)