https://github.com/akarsh1995/leetcode-tui
Terminal UI for leetcode. Lets you browse questions through different topics. View, solve, run and submit questions from TUI.
https://github.com/akarsh1995/leetcode-tui
algorithms cli data-structures leetcode rust tui tui-rs
Last synced: about 6 hours ago
JSON representation
Terminal UI for leetcode. Lets you browse questions through different topics. View, solve, run and submit questions from TUI.
- Host: GitHub
- URL: https://github.com/akarsh1995/leetcode-tui
- Owner: akarsh1995
- License: mit
- Created: 2023-07-15T20:11:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T12:44:48.000Z (over 1 year ago)
- Last Synced: 2026-04-18T04:13:11.875Z (2 months ago)
- Topics: algorithms, cli, data-structures, leetcode, rust, tui, tui-rs
- Language: Nix
- Homepage:
- Size: 4.22 MB
- Stars: 90
- Watchers: 3
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome - akarsh1995/leetcode-tui
README
# Leetcode TUI
# Use Leetcode in your terminal.

### Why this TUI:
My motivation for creating leetcode-tui stemmed from my preference for tools that are lightweight and consume fewer system resources. When I explored existing leetcode CLI tools on GitHub, I came across a few raw command-line interfaces, but they lacked the interactivity I desired.
To address this, I decided to develop leetcode-tui, a Text-based User Interface, that provides an interactive and user-friendly experience for solving LeetCode problems.
> **Warning**
> This TUI is currently under active development. Please feel free to open an issue if you find errors.
## Installation
### Using Cargo
```sh
cargo install leetcode-tui-rs
```
### Using [Nix](https://nix.dev/)
You can use leetcode-tui in several ways with Nix:
#### Quick Run (No Installation)
```sh
# Run directly without installing
nix run github:akarsh1995/leetcode-tui
```
#### Imperative Installation
```sh
# Install imperatively in your user profile
nix profile install github:akarsh1995/leetcode-tui
```
#### Development Environment
```sh
# Get a development shell with all dependencies
nix shell github:akarsh1995/leetcode-tui
```
## Post Installation
```sh
leetui
# This is going to create a config file depending on your os.
# Get the Cookies from the browser `LEETCODE_SESSION` and `csrftoken` and paste it in the config file
# run the command again to populate db
leetui
```
## Features
- Question grouped by categories
- Read Question
- Open question in `EDITOR`
- Solve question in multiple languages
- Submit and run solution in multiple languages
- Read Stats of your performance (Ctrl+s)
- Solved questions are marked with "👑"
- Neetcode 75
- For Fuzzy search the question list use `/` -- searchable by question id, topic and question_title.
Few related projects:
- [https://github.com/skygragon/leetcode-cli](https://github.com/skygragon/leetcode-cli)
- [https://github.com/clearloop/leetcode-cli](https://github.com/clearloop/leetcode-cli)