leetsolv for Mac
LeetSolv is a CLI tool for Data Structures and Algorithms (DSA) problem revision with spaced repetition. It supports problems from LeetCode and HackerRank.
leetsolv — overview
English | 繁體中文 | 简体中文
LeetSolv is a CLI tool for Data Structures and Algorithms (DSA) problem revision with spaced repetition. It supports problems from LeetCode and HackerRank. Powered by a customized SuperMemo 2 algorithm that incorporates familiarity, importance, and reasoning to move beyond rote memorization.
Installation Usage Review Scheduling System Problem Management Configuration FAQ
Installation
Scoop (Windows)
Homebrew (macOS/Linux)
Shell Script (macOS/Linux)
To uninstall:
Usage
LeetSolv can be run interactively or by passing commands directly from your terminal.
Review Scheduling System
Adaptive SM-2 Algorithm
Unlike standard SM-2 (used by Anki), LeetSolv adds importance and reasoning factors—designed for DSA practice, not flashcard memorization. Familiarity (5 levels), Importance (4 levels), and Reasoning (3 levels) determine your next review date. Randomization prevents bunching reviews on the same days.
Due Priority Scoring Due reviews can accumulate over time. LeetSolv ranks them by priority score so you can focus on what matters most. Default formula: (1.5×Importance) + (0.5×Overdue Days) + (3.0×Familiarity) + (-1.5×Review Count) + (-1.0×Ease Factor)
Interval Growing Curve
Review intervals expand based on importance, familiarity, and reasoning. Higher importance = shorter intervals, more frequent reviews.
Problem Management
Functionalities CRUD + Undo: Create, view, update, delete problems. Undo your last action. Trie-Based Search: Fast filtering by keyword, importance, familiarity. Quick Views: Summary of due/upcoming problems with paginated listing. Interactive & Batch Modes: Run interactively or pass commands directly. Intuitive Commands: Familiar aliases (ls, rm), color-coded output.
Data Privacy & Safety No Data Collection: LeetSolv does not upload user data to the internet. Atomic Writes: All writes use temp file + rename for data consistency.
Configuration
Customize via environment variables or JSON config. See CONFIGURATION.md for all options.
FAQ
Q: Why use LeetSolv instead of an Anki deck?
A: Anki is great for memorizing facts, but DSA requires deeper practice. LeetSolv's SM-2 algorithm uses reasoning, familiarity, and importance to schedule deliberate problem-solving—not rote recall.
Q: Should I add all my previously solved problems?
A: No. Only add problems you want to revisit. The algorithm uses the add date for scheduling—bulk-adding creates unrealistic schedules. For old problems, re-solve first, then add.
Q: After a period of use, I accumulated too many due problems.
A: SM-2 accumulates dues if you skip days. Use Due Priority Scoring to focus on high-priority problems first. Remove mastered problems—the goal is active practice, not tracking everything.
Q: Why zero third-party dependencies?
A: LeetSolv is implemented in pure Go for full control over all implementations—no external libraries. See MOTIVATION.md for the design philosophy.
Open an issue for questions or suggestions.
Details
用于 DSA 问题复习的命令行工具,支持间隔重复
How to install leetsolv
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-01-01; current version v1.2.0, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v1.2.0 | 2026-01-01 | Stable | 2.8 MB | Download | Download | Download |
| v1.1.1 | 2025-12-28 | Stable | 2.8 MB | Download | Download | Download |
| v1.1.0 | 2025-12-28 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.6 | 2025-12-20 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.5 | 2025-11-29 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.4 | 2025-09-22 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.3 | 2025-09-01 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.1 | 2025-08-25 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.0 | 2025-08-24 | Stable | 2.8 MB | Download | Download | Download |
| v1.0.0-rc.3 | 2025-08-22 | Stable | 2.8 MB | Download | Download | Download |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Apple silicon · macOS 14 Sonoma
- Intel · macOS 14 Sonoma
- Linux · ARM64
- Linux · x86_64
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| leetsolv | v1.2.0 | MIT | CLI | 0 |
| emp | v0.13.0 | BSD-2-Clause | CLI | 1 |
| ip2location | 8.7.0 | MIT | CLI | 10 |
| dud | v0.4.5 | BSD-3-Clause | CLI | 0 |
Similar apps: Command-line Tools
emp
Empire is a control layer on top of Amazon EC2 Container Service (ECS) that provides a Heroku…ip2location
IP2Location is a C library that enables the user to find the country, region or state…dud
CLI tool for versioning dataoslo
CLI tool for the OpenSLO specdtsroll
Are you publishing a TypeScript project where consumers encounter type-checking errors like:git-mob
Git Mob - Co-author commitsCategories: Command-line Tools