Hello Algo: An Animated Data Structures & Algorithms Guide
Hello Algo is a free, open-source book that teaches data structures and algorithms through animated diagrams and one-click-runnable code, not static text. The README quotes a Tsinghua University professor and an Amazon senior scientist praising it. Reach for it if animation and hands-on code help you learn; skip it if you just want a quick reference.
An Animated DSA Tutorial
Hello Algo is an open-source, beginner-friendly book covering data structures and algorithms, maintained on GitHub by krahets and available in Simplified Chinese, Traditional Chinese, English, Japanese, and Russian. Each concept is explained with animated diagrams and paired with source code you can run with one click, so readers can watch how an algorithm behaves and then execute it themselves rather than just read a written explanation.
Why Hello Algo is Popular
Its README carries two named endorsements: a Tsinghua University computer science professor calls it an accessible introduction that gets readers learning hands-on, and an Amazon senior scientist writes that studying would have been '10 times easier' with this book around when they were starting out. That combination is rare in a self-published book. GitHub also tags the repository under leetcode alongside data-structures-and-algorithms and education, which lines up with why people preparing for coding interviews gravitate toward it โ the runnable code doubles as practice material, not just illustration.
Key Learning Features
- โEvery concept is explained with an animated diagram before any code appears, according to the README's own description.
- โSource code for each example runs with one click, so a reader can execute the algorithm instead of just reading about it.
- โCode implementations exist across many languages, including Python, Java, C++, C, C#, JavaScript, Go, Swift, Rust, Ruby, Kotlin, TypeScript, and Dart, per the repo description.
- โThe book text itself is published in five languages: Simplified Chinese, Traditional Chinese, English, Japanese, and Russian.
- โThe README frames the learning path as a smooth curve meant to guide beginners through a knowledge map of data structures and algorithms.
- โReaders are explicitly invited to ask questions and share insights in the comments section, per the README.
- โThe project is still being actively updated, with the README describing three specific ways to contribute: content correction, code translation, and translation review.
- โGitHub tags the repo under leetcode alongside data-structures-and-algorithms, tying its content to interview-style problem solving.
Who Benefits from Hello Algo?
Hello Algo suits someone learning data structures and algorithms for the first time who wants to see each idea animated and then run the code themselves, rather than parse dense pseudocode from a printed page. It's also a fit if you want the material in Chinese, Japanese, or Russian instead of only English, since the README lists the book across five languages. Skip it if you already know the material and want a terse reference, or if you need a permissively licensed resource to redistribute commercially, since it's CC BY-NC-SA 4.0.
Strengths
- โExplains ideas with animated diagrams instead of static text and figures, a real difference in format from a typical algorithms book.
- โPairs every concept with source code that runs with one click rather than pseudocode you have to adapt yourself.
- โNamed endorsements in the README, from a Tsinghua University computer science professor and an Amazon senior scientist, go beyond generic praise.
- โCode spans a wide set of languages instead of locking readers into one syntax.
- โFree to read and still being actively updated, with a documented path for contributing corrections and translations.
Considerations for Learners
- โณLicensed CC BY-NC-SA 4.0, so commercial use and unrestricted redistribution aren't covered โ any derivative has to carry the same license.
- โณThe content originates in Chinese; other languages are translations, and the README doesn't detail how complete or current each translation is.
- โณGitHub lists Java as the repo's primary language, so it's worth checking which language's code set is most feature-rich before picking one to follow.
- โณThe README's endorsements are two named individuals quoted directly, not an aggregated or independent review.
- โณContent correction and translation review depend on volunteer contributions per the README, not a fixed release schedule.
Other DSA Learning Resources
Common Questions About Hello Algo
Hello Algo uses the CC BY-NC-SA 4.0 license, per its README, applied to the book's written content, code, and included media such as images and video. That license allows noncommercial use and requires any derivative to carry the same license terms.
Hello Algo's own description lists code implementations in Python, Java, C++, C, C#, JavaScript, Go, Swift, Rust, Ruby, Kotlin, TypeScript, and Dart, among others.
Hello Algo positions itself in its own README as a free, beginner-friendly introduction to data structures and algorithms, built around what it calls a smooth learning curve for new learners working through the material step by step.
Hello Algo accepts contributions in three areas per its README: correcting content through a dedicated contribution page, translating code into additional programming languages via a linked GitHub issue, and reviewing translations of the book's multilingual text.
Hello Algo is free to read and use, but it's licensed CC BY-NC-SA 4.0, which restricts commercial use and requires derivative works to carry the same license, so it isn't a free-for-all license for repackaging or resale.
Hello Algo's own description opens by calling itself an animated, illustrated tutorial, and the README repeats that the whole book uses animated diagrams to walk through each data structure and algorithm.
Best use cases
- โขLearning data structures and algorithms for the first time, since the README frames the whole book around a smooth learning curve for beginners.
- โขStudying for coding interviews, given the repo's own leetcode tag and its runnable code paired with each concept.
- โขReading the material in a language other than English, since the book ships in Simplified Chinese, Traditional Chinese, Japanese, and Russian too.
- โขComparing how the same algorithm looks across languages, since the README lists implementations spanning Python, Java, C++, Go, Rust, and more.
- โขStudying with others, since the README asks readers to discuss questions and share insights in the comments.
Related repositories
Is hello-algo worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of hello-algo.
