← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Openleetcode: A Local LeetCode Runner with Repository-Based Tests and Runtimes

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Openleetcode is a local LeetCode runner built in Haskell.
  • Tests and runtime templates are stored in the repository.
  • It uses Docker for its execution backend, specifically Piston.
  • Supports multiple programming languages including Python, Java, and C++.

Introduction to Openleetcode

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.

How it Works

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 and Usage

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`.

Supported Languages and Features

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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~32 min · 27 stories · Aug 18

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

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.