☰ Menu
CLI Open source

leetsolv for Mac

leetsolv

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

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-01-01; current version v1.2.0, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v1.2.02026-01-01Stable2.8 MBDownloadDownloadDownload
v1.1.12025-12-28Stable2.8 MBDownloadDownloadDownload
v1.1.02025-12-28Stable2.8 MBDownloadDownloadDownload
v1.0.62025-12-20Stable2.8 MBDownloadDownloadDownload
v1.0.52025-11-29Stable2.8 MBDownloadDownloadDownload
v1.0.42025-09-22Stable2.8 MBDownloadDownloadDownload
v1.0.32025-09-01Stable2.8 MBDownloadDownloadDownload
v1.0.12025-08-25Stable2.8 MBDownloadDownloadDownload
v1.0.02025-08-24Stable2.8 MBDownloadDownloadDownload
v1.0.0-rc.32025-08-22Stable2.8 MBDownloadDownloadDownload

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.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
leetsolvv1.2.0MITCLI0
empv0.13.0BSD-2-ClauseCLI1
ip2location8.7.0MITCLI10
dudv0.4.5BSD-3-ClauseCLI0

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…