Openleetcode is a newly released local LeetCode runner developed in Haskell. It is designed to provide a self-contained environment for developers to test their LeetCode solutions. The core principle of Openleetcode is that both the test suites and runtime templates reside within the repository, offering transparency and local control over the testing process.
The runner processes a solution file, identifies the corresponding problem manifest, and constructs a language-specific harness. This harness is then sent to a pluggable execution backend, which judges the result locally. Docker is required for the execution backend, with Piston being the default choice. The CLI acts as the interface, allowing users to submit solutions by ID or title.
Installation scripts are provided for Linux, macOS, and Windows PowerShell. Users on Linux and macOS will have the default Piston backend started automatically via Docker Compose, while Windows users need to set up Docker and start the backend manually. After installation, users can download data assets and submit solutions using commands like `openleetcode submit ./solution.py --id 1`.
Openleetcode includes templates for a variety of programming languages, including C++, Rust, Python3, Python2, Ruby, Java, C#, Kotlin, Go, Dart, Swift, and TypeScript. Each runtime provides a compatibility layer for common LeetCode problem requirements, such as JSON output, array handling, linked lists, and binary trees. The tool aims to keep imports and common libraries consistent with official LeetCode environments.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Openleetcode is a new local LeetCode runner that allows users to test solutions against open test suites and runtime templates stored directly in the repository. This tool provides a local execution environment for LeetCode problems, offering developers more control over their testing setup.