labuladong/fucking-algorithm

Crack LeetCode, not only how, but also why.

Open original source ↗

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

[](https://star-history.com/#labuladong/fucking-algorithm&Date) English version is on labuladong.online too. Just enjoy:) 本仓库总共 60 多篇原创文章,都是基于 LeetCode 的题目,涵盖了所有题型和技巧,而且一定要做到举一反三,通俗易懂,绝不是简单的代码堆砌,后面有目录。 我先吐槽几句。刷题刷题,刷的是题,培养的是思维,本仓库的目的就是传递这种算法思维。我要是只写一个包含 LeetCode 题目代码的仓库,有个锤子用?没有思路解释,没有思维框架,顶多写个时间复杂度,那玩意一眼就能看出来。 只想要答案的话很容易,题目评论区五花八门的答案,动不动就秀 python 一行代码解决,有那么多人点赞。问题是,你去做算法题,是去学习编程语言的奇技淫巧的,还是学习算法思维的呢?你的快乐,到底源自复制别人的一行代码通过测试,已完成题目 +1,还是源自自己通过逻辑推理和算法框架不看答案写出解法? 网上总有大佬喷我,说我写的东西太基础,要么说不能借助框架思维来学习算法。我只能说大家刷算法就是找工作吃饭的,不是打竞赛的,我也是一路摸爬滚打过来的,我们要的是清楚明白有所得,不是故弄玄虚无所指。 不想办法做到通俗易懂,难道要上来先把《算法导论》吹上天,然后把人家都心怀敬仰地劝退? 做啥事情做多了,都能发现套路的,我把各种算法套路框架总结出来,相信可以帮助其他人少走弯路。我这个纯靠自学的小童鞋,花了一年时间刷题和总结,自己写了一份算法小抄,后面有目录,这里就不废话了。 1、先给本仓库点个 star,满足一下我的虚荣心,文章质量绝对值你一个 star。我还在继续创作,给我一点继续写文的动力,感谢。 2、建议收藏我的在线网站,每篇文章开头都有对应的力扣题目链接,可以边看文章边刷题,一共可以手把手带你刷 500 道题目: 2024 最新地址:https://labuladong.online/algo/ GitHub Pages 地址:https://labuladong.online/algo/ Gitee Pages 地址:https://labuladong.gitee.io/algo/ 我的算法网站、所有配套插件都集成了一个算法可视化工具,可以对数据结构和递归过程进行可视化,大幅降低理解算法的难度。几乎每道题目的解法代码都有对应的可视化面板,具体参见下方介绍。 内容当然是我的系列算法教程中最核心的部分,我的算法教程都发布在网站 labuladong.online 上,相信你会未来会在这里花费大量的学习时间,而不是仅仅加入收藏夹 主要功能:Chrome 插件可以在中文版力扣或英文版 LeetCode 上快捷查看我的「题解」或「思路」,并添加了题目和算法技巧之间的引用关系,可以和我的网站/公众号/课程联动,给我的读者提供最丝滑的刷题体验。安装使用手册见下方目录。 主要功能:和 Chrome 插件功能基本相同,习惯在 vscode 上刷题的读者可以使用该插件。安装使用手册见下方目录。 主要功能:和 Chrome 插件功能基本相同,习惯在 Jetbrains 家的 IDE(PyCharm/Intellij/Goland 等)上刷题的读者可以使用该插件。安装使用手册见下方目录。 最后祝大家学习愉快,在题海中自在遨游! 按照昵称字典序排名: ABCpril, andavid, bryceustc, build2645, CarrieOn, cooker, Dong…

labuladong/fucking-algorithm on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-29T11:39:48.351Z

Inside the original README — Document outline
  1. labuladong 的算法笔记
  2. 在开始学习之前
  3. labuladong 刷题全家桶简介
  4. 一、算法可视化面板
  5. 二、学习网站
  6. 三、Chrome 插件
  7. 四、vscode 插件
  8. 五、Jetbrains 插件
  9. 文章目录
  10. 感谢如下大佬参与翻译
  11. Donate

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Links from the README

References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.

Documentation belongs to its respective authors. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

Crack LeetCode, not only how, but also why.

Repository facts

Owner
labuladong
Primary language
Markdown
Stars
136,005
Forks
23,532
Open issues + pull requests
0
License
Not reported — inspect the license file
Archived
No
Default branch
master
Created
2020-02-19T09:01:23.000Z
Last push
2026-10-18T11:43:51.000Z

Topics and intended use

Owner-supplied topics: algorithms, computer-science, data-structures, dynamic-programming, dynamic-programming-algorithm, interview-questions, kmp, leetcode

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-11-01T12:17:40.351Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

codecrafters-io/build-your-own-x

DigitalPlatDev/FreeDomain

jakubkrehel/skills

pallavi-shekhar/ai-engineering-interview-questions-company-wise

cbrock84/headcount

amitshekhariitbhu/ai-system-design