fucking-algorithm README

The project's README from github.com/labuladong/fucking-algorithm. As one markdown file: README.md.

Star History Chart

English version is on labuladong.online too. Just enjoy:)

labuladong 的算法笔记

本仓库总共 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 刷题全家桶简介

一、算法可视化面板

我的算法网站、所有配套插件都集成了一个算法可视化工具,可以对数据结构和递归过程进行可视化,大幅降低理解算法的难度。几乎每道题目的解法代码都有对应的可视化面板,具体参见下方介绍。

二、学习网站

内容当然是我的系列算法教程中最核心的部分,我的算法教程都发布在网站 labuladong.online 上,相信你会未来会在这里花费大量的学习时间,而不是仅仅加入收藏夹~

三、Chrome 插件

主要功能:Chrome 插件可以在中文版力扣或英文版 LeetCode 上快捷查看我的「题解」或「思路」,并添加了题目和算法技巧之间的引用关系,可以和我的网站/公众号/课程联动,给我的读者提供最丝滑的刷题体验。安装使用手册见下方目录。

四、vscode 插件

主要功能:和 Chrome 插件功能基本相同,习惯在 vscode 上刷题的读者可以使用该插件。安装使用手册见下方目录。

五、Jetbrains 插件

主要功能:和 Chrome 插件功能基本相同,习惯在 Jetbrains 家的 IDE(PyCharm/Intellij/Goland 等)上刷题的读者可以使用该插件。安装使用手册见下方目录。

最后祝大家学习愉快,在题海中自在遨游!

文章目录

fucking-algorithm (labuladong/fucking-algorithm)

Searching Database…

What is this?This is labuladong's Chinese-language algorithm notebook: 60+ original articles that use LeetCode problems to teach reusable problem-solving frameworks, not just paste-and-pass code answers.
Is this a code library or a collection of articles?It is a collection of markdown articles and a companion learning site, plus Chrome, VSCode, and JetBrains plugins and a paid membership tier — not a code library you import into a project.
Where should a beginner start?Start with the language-basics chapter, then the data-structures-and-sorting chapter, before moving on to the core algorithm-framework articles further down the directory.
Is all of this free?The repo's articles are free, but the companion website also sells a paid membership for extra features on top of the free content.
Is there an English version?Yes — labuladong.online hosts an English version of the site alongside the original Chinese content.
What do the Chrome/VSCode/JetBrains plugins do?They show labuladong's solution explanations directly on LeetCode's own problem page (or inside your IDE) and link each problem to the relevant algorithm technique.
What is the algorithm visualization panel?A built-in tool on the site and plugins that visualizes data structures and recursive execution step by step to make the algorithms easier to follow.
Creator
labuladong
Size
123.3 MB
Stars
135.9K
Updated
CommitFeb 28
Age
6y
Commits · 90 Days