gitmyhub

leetcode

TeX ★ 11k updated 1y ago

LeetCode题解,151道题完整版。

A LaTeX-formatted PDF book of C++ solutions to 151 LeetCode algorithm problems, with Chinese commentary. The pre-built PDF can be downloaded directly from GitHub or read online without any setup.

C++LaTeXTeX LiveDockersetup: easycomplexity 2/5

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.

Where it fits