back to home

krahets / hello-algo

《Hello 算法》:动画图解、一键运行的数据结构与算法教程。支持简中、繁中、English、日本語,提供 Python, Java, C++, C, C#, JS, Go, Swift, Rust, Ruby, Kotlin, TS, Dart 等代码实现

122,379 stars
14,835 forks
26 issues
JavaC++Python

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing krahets/hello-algo in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/krahets/hello-algo)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<p align="center"> <a href="https://www.hello-algo.com/"> <img src="https://www.hello-algo.com/index.assets/hello_algo_header.png" width="450"></a> </p> <p align="center"> <img style="height: 60px;" src="https://readme-typing-svg.demolab.com?font=Noto+Sans+SC&weight=400&duration=3500&pause=2000&color=21C8B8&center=true&vCenter=true&random=false&width=200&lines=Hello%2C+%E7%AE%97%E6%B3%95+!" alt="hello-algo-typing-svg" /> </br> 动画图解、一键运行的数据结构与算法教程 </p> <p align="center"> <a href="https://www.hello-algo.com/"> <img src="https://www.hello-algo.com/index.assets/btn_read_online_dark.svg" height="45"></a> <a href="https://github.com/krahets/hello-algo/releases"> <img src="https://www.hello-algo.com/index.assets/btn_download_pdf_epub_dark.svg" height="45"></a> </p> <p align="center"> <img src="https://www.hello-algo.com/index.assets/animation.gif" width="395"> <img src="https://www.hello-algo.com/index.assets/running_code.gif" width="395"> </p> <p align="center"> <img src="https://img.shields.io/badge/Python-snow?logo=python&logoColor=3776AB" alt="" /> <img src="https://img.shields.io/badge/Java-snow?logo=coffeescript&logoColor=FC4C02" alt="" /> <img src="https://img.shields.io/badge/C%2B%2B-snow?logo=c%2B%2B&logoColor=00599C" alt="" /> <img src="https://img.shields.io/badge/C-snow?logo=c&logoColor=A8B9CC" alt="" /> <img src="https://img.shields.io/badge/C%23-snow?logo=csharp&logoColor=512BD4" alt="" /> <img src="https://img.shields.io/badge/JavaScript-snow?logo=javascript&logoColor=E9CE30" alt="" /> <img src="https://img.shields.io/badge/Go-snow?logo=go&logoColor=00ADD8" alt="" /> <img src="https://img.shields.io/badge/Swift-snow?logo=swift&logoColor=F05138" alt="" /> <img src="https://img.shields.io/badge/Rust-snow?logo=rust&logoColor=000000" alt="" /> <img src="https://img.shields.io/badge/Ruby-snow?logo=ruby&logoColor=CC342D" alt="" /> <img src="https://img.shields.io/badge/Kotlin-snow?logo=kotlin&logoColor=7F52FF" alt="" /> <img src="https://img.shields.io/badge/TypeScript-snow?logo=typescript&logoColor=3178C6" alt="" /> <img src="https://img.shields.io/badge/Dart-snow?logo=dart&logoColor=0175C2" alt="" /> </p> <p align="center"> 简体中文 | <a href="https://github.com/krahets/hello-algo/blob/main/zh-hant/README.md">繁體中文</a> | <a href="https://github.com/krahets/hello-algo/blob/main/en/README.md">English</a> | <a href="https://github.com/krahets/hello-algo/blob/main/ja/README.md">日本語</a> </p>

关于本书

本项目旨在打造一本开源免费、新手友好的数据结构与算法入门教程。

  • 全书采用动画图解,内容清晰易懂、学习曲线平滑,引导初学者探索数据结构与算法的知识地图。
  • 源代码可一键运行,帮助读者在练习中提升编程技能,了解算法工作原理和数据结构底层实现。
  • 提倡读者互助学习,欢迎大家在评论区提出问题与分享见解,在交流讨论中共同进步。

若本书对您有所帮助,请在页面右上角点个 Star :star: 支持一下,谢谢!

推荐语

“一本通俗易懂的数据结构与算法入门书,引导读者手脑并用地学习,强烈推荐算法初学者阅读。”

—— 邓俊辉,清华大学计算机系教授

“如果我当年学数据结构与算法的时候有《Hello 算法》,学起来应该会简单 10 倍!”

—— 李沐,亚马逊资深首席科学家

鸣谢

<p align="left"> <a href="https://go.warp.dev/hello-algo"> <img src="https://github.com/warpdotdev/brand-assets/blob/main/Github/Sponsor/Warp-Github-LG-02.png" alt="Warp-Github-LG-02" width="500"></a> </p>

Warp is built for coding with multiple AI agents.

强烈推荐 Warp 终端,高颜值 + 好用的 AI,体验非常棒!

贡献

本开源书仍在持续更新之中,欢迎您参与本项目,一同为读者提供更优质的学习内容。

  • 内容修正:请您协助修正或在评论区指出语法错误、内容缺失、文字歧义、无效链接或代码 bug 等问题。
  • 代码转译:期待您贡献各种语言代码,已支持 Python、Java、C++、Go、JavaScript 等 12 门编程语言。
  • 中译英:诚邀您加入我们的翻译小组,成员主要来自计算机相关专业、英语专业和英文母语者。

欢迎您提出宝贵意见和建议,如有任何问题请提交 Issues 或微信联系 krahets-jyd

感谢本开源书的每一位撰稿人,是他们的无私奉献让这本书变得更好,他们是:

<p align="left"> <a href="https://github.com/krahets/hello-algo/graphs/contributors"> <img width="770" src="https://contrib.rocks/image?repo=krahets/hello-algo&max=300&columns=16" /> </a> </p>

License

The texts, code, images, photos, and videos in this repository are licensed under CC BY-NC-SA 4.0.