Download the pre-built PDF to study C++ solutions to common LeetCode algorithm problems
Build the PDF locally using Docker to get a fully typeset reference book without installing TeX Live manually
Browse C++ algorithm implementations for interview preparation even without reading Chinese commentary
Use the VS Code devcontainer config to compile the book on Windows, Linux, or macOS
Pre-built PDF is available for direct download, building locally from source requires Docker or TeX Live with specific fonts installed.
soulmachine/leetcode is a LaTeX-formatted book of solutions to 151 LeetCode programming problems. LeetCode is a popular website where programmers practice algorithmic challenges, often to prepare for technical job interviews. This repository presents the solutions in a typeset PDF format rather than as loose source files in a code editor. The solutions are written in C++, and a completed PDF can be downloaded directly from GitHub or read online at algorithm-essentials.soulmachine.me. A Java version of the book was started but, according to the README, had not been finished as of the last update. The book is built using LaTeX, a document preparation system used widely in academic and technical publishing. Compiling the source into a PDF requires a TeX distribution called TeX Live along with a specific set of fonts. The README offers two ways to build: a Docker command that handles all the dependencies automatically, or opening the project in VS Code with the included devcontainer configuration, which works on Windows, Linux, and macOS. The LaTeX template used for the book was created by another developer named Chen Shuo, and the README credits and thanks him for it. If you want to contribute corrections or additions, the README asks that you compile the PDF locally to verify the output looks right before submitting a pull request. The README is written in Chinese, and the book content appears to be in Chinese as well. Non-Chinese readers can still browse the C++ code in the repository, but the explanations and commentary are in Chinese.
← soulmachine on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.