{"id":13398680,"url":"https://github.com/soulmachine/leetcode","last_synced_at":"2025-08-20T11:18:21.266Z","repository":{"id":38419453,"uuid":"13431235","full_name":"soulmachine/leetcode","owner":"soulmachine","description":"LeetCode题解，151道题完整版。","archived":false,"fork":false,"pushed_at":"2024-07-10T22:02:14.000Z","size":40440,"stargazers_count":11249,"open_issues_count":50,"forks_count":3435,"subscribers_count":887,"default_branch":"master","last_synced_at":"2024-07-31T19:16:43.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soulmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-10-09T02:33:48.000Z","updated_at":"2024-07-29T08:43:44.000Z","dependencies_parsed_at":"2024-10-25T17:34:13.385Z","dependency_job_id":"acc12f4b-dde5-42c3-ae94-3d400c471d94","html_url":"https://github.com/soulmachine/leetcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulmachine%2Fleetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulmachine%2Fleetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulmachine%2Fleetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulmachine%2Fleetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soulmachine","download_url":"https://codeload.github.com/soulmachine/leetcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762232,"owners_count":20343972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:30.493Z","updated_at":"2025-03-15T16:42:43.886Z","avatar_url":"https://github.com/soulmachine.png","language":"TeX","funding_links":[],"categories":["Online Programming Learning Websites","HarmonyOS","TeX"],"sub_categories":["[leetcode](https://leetcode.com)","Windows Manager"],"readme":"# LeetCode题解\n\n## 在线阅读\n\n\u003chttps://algorithm-essentials.soulmachine.me/\u003e\n\n## PDF下载\n\n\u003ca href=\"https://github.com/soulmachine/leetcode/raw/master/C%2B%2B/leetcode-cpp.pdf\"\u003eLeetCode题解(C++版).pdf\u003c/a\u003e\n\nC++ 文件夹下是C++版，内容一模一样，代码是用C++写的。\n\nJava 文件夹下是Java版，目前正在编写中，由于拖延症，不知道猴年马月能完成。\n\n## 如何编译PDF\n\n### 命令行编译\n\n```bash\ndocker run -it --rm -v $(pwd)/C++:/project -w /project soulmachine/texlive xelatex -interaction=nonstopmode leetcode-cpp.tex\n```\n\n### vscode下编译\n\n本项目已经配置好了vscode devcontainer, 可以在 Windows, Linux 和 macOS 三大平台上编译。\n\n用 vscode 打开本项目，选择右下角弹出的 `\"Reopen in Container\"`，就会在容器中打开本项目，该容器安装了 Tex Live 2022 以及所需要的10个字体。\n\n点击vscode左下角的齿轮图标，选择 `Command Palette`，输入`tasks`, 选择 `Run Task`， 选择 `leetcode-C++`，即可启动编译。\n\n## LaTeX模板\n\n本书使用的是陈硕开源的[模板](https://github.com/chenshuo/typeset)。这个模板制作精良，感谢陈硕 :)\n\n这个LaTex模板总共使用了10个字体，下载地址 \u003chttps://pan.baidu.com/s/1eRFJXnW\u003e 。有的字体Windows自带了，有的字体Ubuntu自带了，但都不全，还是一次性安装完所有字体比较方便。\n\n也可以参考 [Dockerfile](https://github.com/soulmachine/docker-images/blob/master/texlive/Dockerfile) 去学习如何安装所有字体。\n\n## 贡献代码\n\n欢迎给本书添加内容或纠正错误，在自己本地编译成PDF，预览没问题后，就可以发pull request过来了。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulmachine%2Fleetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoulmachine%2Fleetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulmachine%2Fleetcode/lists"}