krahets/leetcode-book — explained in plain English
Analysis updated 2026-06-24
Study worked solutions to classic Sword for Offer interview problems in your choice of Python, Java, or C++.
Follow a structured four-step LeetCode study plan progressing from the curated 88-question set up to the Top 100.
Read problem analysis notes alongside solution code to understand reasoning, not just memorize answers.
Prepare for technical programming interviews at Chinese tech companies using a proven learning path.
| krahets/leetcode-book | alibaba/transmittable-thread-local | bytedeco/javacv | |
|---|---|---|---|
| Stars | 8,289 | 8,294 | 8,308 |
| Language | Java | Java | Java |
| Setup difficulty | easy | easy | easy |
| Complexity | 1/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Chinese-language README, the code files are readable without any installation.
LeetCode-Book is a Chinese-language collection of algorithm and data structure solutions aimed at programming interview preparation. It provides worked solutions in Python, Java, and C++ for three separate problem sets: the classic Sword for Offer interview question book (a widely used reference in China), a curated selection of 88 high-frequency interview problems assembled by the repository author, and the problems from the Illustration of Algorithms and Data Structures LeetBook published on LeetCode-CN. The repository is organized into three folders: sword_for_offer for the Sword for Offer problems, selected_coding_interview for the 88-question curated set, and leetbook_ioa for the illustrated algorithm book. All three contain problem analysis notes alongside the solution code. The README is written in Chinese and recommends a learning path. The author suggests reading the Hello Algo book first (a separate beginner-friendly animated introduction to data structures and algorithms, also by this author and available as a separate GitHub project) before working through interview problems. It then points to four LeetCode study plans to follow in order, including the curated 88-question set, the top 100 liked problems, the classic interview 150, and a 75-question core set. For beginners, the README offers advice: solve two to three problems per day, prioritize genuine understanding over volume, follow the list order, and expect to revisit the same material several times before it fully settles. The repository is licensed under CC BY-NC-SA 4.0, which allows sharing and adapting the content for non-commercial purposes with attribution. At the time of the badges shown in the README, 75 of the included solutions had been accepted by the LeetCode judge.
A Chinese-language collection of algorithm and data structure solutions in Python, Java, and C++ for three popular interview problem sets, with a structured learning path for programming interview preparation.
Mainly Java. The stack also includes Python, Java, C++.
CC BY-NC-SA 4.0, share and adapt freely for non-commercial purposes only, with attribution and the same license applied to derivatives.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.