2022-11-04 19:12:12 +08:00
|
|
|
|
---
|
2022-11-08 02:58:42 +08:00
|
|
|
|
comments: true
|
2022-11-04 19:12:12 +08:00
|
|
|
|
hide:
|
|
|
|
|
- footer
|
|
|
|
|
---
|
|
|
|
|
|
2022-11-17 02:48:17 +08:00
|
|
|
|
=== " "
|
|
|
|
|
|
|
|
|
|
<div class="result" markdown>
|
2023-02-27 19:08:32 +08:00
|
|
|
|
![conceptual_rendering](index.assets/conceptual_rendering.png){ align=left width=330 }
|
2022-11-26 03:02:27 +08:00
|
|
|
|
</br></br></br></br></br>
|
2023-02-27 19:08:32 +08:00
|
|
|
|
<h1 align="center"> 《 Hello 算法 》 </h1>
|
2023-01-03 15:47:06 +08:00
|
|
|
|
<p align="center"> 动画图解、能运行、可提问的</br>数据结构与算法快速入门教程 </p>
|
2022-11-24 19:32:32 +08:00
|
|
|
|
<p align="center"> [![github-stars](https://img.shields.io/github/stars/krahets/hello-algo?style=social)](https://github.com/krahets/hello-algo)</p>
|
|
|
|
|
<h6 align="center"> [@Krahets](https://leetcode.cn/u/jyd/) </h6>
|
2022-11-17 02:48:17 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2023-02-13 17:35:29 +08:00
|
|
|
|
<h2 align="center"> 「全书动画图解」 </h2>
|
2022-11-22 04:17:46 +08:00
|
|
|
|
|
2023-02-13 17:35:29 +08:00
|
|
|
|
<p align="center"> 内容清晰易懂、学习曲线平滑</br>电脑、平板、手机全终端阅读 </p>
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
2022-11-22 04:17:46 +08:00
|
|
|
|
![algorithm_animation](index.assets/animation.gif)
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
2022-11-24 19:32:32 +08:00
|
|
|
|
!!! quote ""
|
|
|
|
|
|
|
|
|
|
<p align="center"> "A picture is worth a thousand words." </p>
|
|
|
|
|
<p align="center"> “一图胜千言” </p>
|
|
|
|
|
|
2022-11-22 04:17:46 +08:00
|
|
|
|
---
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
2023-02-13 17:35:29 +08:00
|
|
|
|
<h2 align="center"> 「代码一键运行」 </h2>
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
2023-02-13 17:35:29 +08:00
|
|
|
|
<p align="center"> 提供各个算法与数据结构的简洁实现与测试样例,皆可直接运行</br>支持 Java, C++, Python, Go, JS, TS, C#, Swift, Zig 等语言 </p>
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
|
|
|
|
![running_code](index.assets/running_code.gif)
|
|
|
|
|
|
2022-11-24 19:32:32 +08:00
|
|
|
|
!!! quote ""
|
|
|
|
|
|
|
|
|
|
<p align="center"> "Talk is cheap. Show me the code." </p>
|
|
|
|
|
<p align="center"> “少吹牛,看代码” </p>
|
|
|
|
|
|
2022-11-22 04:17:46 +08:00
|
|
|
|
---
|
|
|
|
|
|
2022-11-24 19:32:32 +08:00
|
|
|
|
<h2 align="center"> 「可讨论与提问」 </h2>
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
2023-02-13 17:35:29 +08:00
|
|
|
|
<p align="center"> 鼓励小伙伴们互帮互助、共同成长</br>提问与评论一般能在两日内得到回复 </p>
|
2022-11-17 02:48:17 +08:00
|
|
|
|
|
|
|
|
|
![comment](index.assets/comment.gif)
|
|
|
|
|
|
2022-11-24 19:32:32 +08:00
|
|
|
|
!!! quote ""
|
|
|
|
|
|
2022-12-21 21:19:20 +08:00
|
|
|
|
<p align="center"> “追风赶月莫停留,平芜尽处是春山” </p>
|
2022-11-24 19:32:32 +08:00
|
|
|
|
<p align="center"> 一起加油! </p>
|
2022-11-26 02:42:02 +08:00
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
<h2 align="center"> 序 </h2>
|
2022-12-07 22:21:43 +08:00
|
|
|
|
|
2023-03-02 02:58:34 +08:00
|
|
|
|
两年前,我在力扣上分享了《剑指 Offer》系列题解,受到了很多小伙伴的喜爱与支持。在此期间,我也回复了许多读者的评论问题,遇到最多的问题是“如何入门学习算法”。我渐渐也对这个问题好奇了起来。
|
2023-02-13 16:29:31 +08:00
|
|
|
|
|
2023-03-02 02:58:34 +08:00
|
|
|
|
两眼一抹黑地刷题应该是最受欢迎的方式,简单粗暴且有效。然而,刷题就如同玩“扫雷”游戏,自学能力强的同学能够顺利地将地雷逐个排掉,而基础不足的同学很可能被炸的满头是包,并在受挫中步步退缩。通读教材书籍也是常用方法,但对于面向求职的同学来说,毕业季、投递简历、应付笔面试已经占用大部分精力,厚重的书本也因此成为巨大的挑战。
|
2023-02-13 16:29:31 +08:00
|
|
|
|
|
2023-03-02 02:58:34 +08:00
|
|
|
|
如果你也有上述烦恼,那么很幸运这本书找到了你。本书是我对于该问题给出的答案,虽然不一定正确,但至少代表一次积极的尝试。这本书虽然不足以让你直接拿到 Offer ,但会引导你探索数据结构与算法的“知识地图”,带你了解不同“地雷”的形状大小和分布位置,让你掌握各种“排雷方法”。有了这些本领,相信你可以更加得心应手地刷题与阅读文献,逐步搭建起完整的知识体系。
|
2023-02-13 16:29:31 +08:00
|
|
|
|
|
2023-03-02 02:58:34 +08:00
|
|
|
|
书中的代码均配有可一键运行的源文件,托管在 [github.com/krahets/hello-algo](https://github.com/krahets/hello-algo) 仓库,建议前往下载。发行版 PDF 的更新周期较长,想看最新内容的小伙伴可以前往 [www.hello-algo.com](https://www.hello-algo.com/) 网页版。
|
2022-12-07 22:21:43 +08:00
|
|
|
|
|
2023-03-02 02:58:34 +08:00
|
|
|
|
<h3 align="left"> 作者简介 </h3>
|
2023-03-01 00:24:18 +08:00
|
|
|
|
|
|
|
|
|
靳宇栋 (Krahets),大厂高级算法工程师,上海交通大学硕士。力扣(LeetCode)全网阅读量最高博主,其 LeetBook《图解算法数据结构》已被订阅 22 万本。
|
2022-12-07 22:21:43 +08:00
|
|
|
|
|
2023-02-26 05:35:02 +08:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<h2 align="center"> 致谢 </h2>
|
2022-12-07 22:21:43 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
本书在开源社区的群策群力下逐步成长,感谢每一位撰稿人,是他们的无私奉献让这本书变得更好,他们是(按照 GitHub 自动生成的顺序):
|
2022-11-26 02:42:02 +08:00
|
|
|
|
|
2023-02-03 01:12:37 +08:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://github.com/krahets/hello-algo/graphs/contributors">
|
2023-02-13 17:35:29 +08:00
|
|
|
|
<img width="550" src="https://contrib.rocks/image?repo=krahets/hello-algo" />
|
2023-02-03 01:12:37 +08:00
|
|
|
|
</a>
|
|
|
|
|
</p>
|
2022-11-26 02:42:02 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
本书的代码审阅工作由 justin‐tse, krahets, nuomi1, Reanon, sjinzh 完成,感谢他们的辛勤付出!
|
2023-02-09 19:45:35 +08:00
|
|
|
|
|
|
|
|
|
<div class="center-table">
|
|
|
|
|
<table>
|
|
|
|
|
<tbody>
|
|
|
|
|
<td align="center"><a href="https://github.com/justin-tse"><img src="https://avatars.githubusercontent.com/u/24556310?v=4" width="50px;" alt="justin-tse"/><br /><sub><b>justin-tse</b></sub></a><br /><sub>JS / TS</sub></td>
|
|
|
|
|
<td align="center"><a href="https://github.com/krahets"><img src="https://avatars.githubusercontent.com/u/26993056?v=4" width="50px;" alt="krahets"/><br /><sub><b>krahets</b></sub></a><br /><sub>Java / Python</sub></td>
|
|
|
|
|
<td align="center"><a href="https://github.com/nuomi1"><img src="https://avatars.githubusercontent.com/u/3739017?v=4" width="50px;" alt="nuomi1"/><br /><sub><b>nuomi1</b></sub></a><br /><sub>Swift</sub></td>
|
|
|
|
|
<td align="center"><a href="https://github.com/Reanon"><img src="https://avatars.githubusercontent.com/u/22005836?v=4" width="50px;" alt="Reanon"/><br /><sub><b>Reanon</b></sub></a><br /><sub>Go / C</sub></td>
|
|
|
|
|
<td align="center"><a href="https://github.com/sjinzh"><img src="https://avatars.githubusercontent.com/u/99076655?v=4" width="50px;" alt="sjinzh"/><br /><sub><b>sjinzh</b></sub></a><br /><sub>Rust / Zig</sub></td>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-11-26 02:42:02 +08:00
|
|
|
|
---
|
2023-02-26 05:56:36 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
<h2 align="center"> 推荐语 </h2>
|
|
|
|
|
|
|
|
|
|
!!! quote
|
2023-02-26 05:56:36 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
“一本通俗易懂的数据结构与算法入门书,引导读者手脑并用地学习,强烈推荐算法初学者阅读。”
|
2023-02-26 05:56:36 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
**—— 邓俊辉,清华大学计算机系教授**
|
2023-02-26 05:56:36 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
!!! quote
|
2023-02-26 05:56:36 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
“如果我当年学数据结构与算法的时候有《Hello 算法》,学起来应该会简单 10 倍!”
|
2023-02-26 05:56:36 +08:00
|
|
|
|
|
2023-03-01 00:24:18 +08:00
|
|
|
|
**—— 李沐,亚马逊资深首席科学家**
|
|
|
|
|
|
|
|
|
|
---
|