leetui

v0.1.0 macOS · Linux · Windows install github

Solve LeetCode without leaving the terminal.

All 4,013 problems live on your own disk, so the board answers while you type.

iInstall

↑↓ move · enter copy
curl -fsSL https://raw.githubusercontent.com/Nano-AI/leetui/main/install.sh | sh

Read it first. That goes for every install script.

Run leetui, then press S to sync. Press a to sign in for your solved status and Premium content.

Session

recorded off the program
The leetui board: a dense table of LeetCode problems with columns for number, todo, mark, title, difficulty, acceptance rate, state and the company that asked it.

Every frame is the program, not a mockup. The silent recording shows searching for tree, browsing companies and study plans, then opening a problem.

Scroll captures sideways to see the full screen. With a keyboard, focus a capture and use the arrow keys.

Local

after one sync

/Find

local index

Titles, tags and full statements, searched on the local index — no network call, so it answers while you type.

Searching for tree: a search field above the board and 378 matching problems below it, with the query highlighted in each title.

eSolve

e your editor · r runs the examples here

e opens your editor in a tmux pane beside the statement, and saving re-runs the tests. Below is that split, photographed: leetui on the left, Neovim on the right holding the real file.

A tmux split: leetui showing the Valid Parentheses statement on the left, and Neovim on the right with the solution file open, line numbers and syntax highlighting visible.

sSubmit

no spinners

There are no spinners in leetui. A pending verdict is a flap held mid flip.

Terminal output of leetui run: five test cases, each marked ok, ending with All 5 cases passed.
0020 python3 PENDING

Accepted commits itself. Pushing asks first.

?Keys

all remappable

Every binding on one screen, behind ?.

The keys screen: two columns of bindings grouped under Move, List, Find, Solve, Worth redoing, Lists, Premium and Do.

Doctor

what this machine is missing

Session cookies go to the OS keychain, never to disk. leetui doctor reports what this machine is missing before you sync.

Output of leetui doctor: the workspace path, five local runners all reporting ok, the detected editor and terminal, and inline image support.