hello-algo

krahets

A free, beginner-friendly book on data structures and algorithms with animated illustrations and runnable code in more than a dozen languages, including Python, Java, C++, Go and Rust. Available in Chinese, English and other languages.

PythonCreated

What is krahets/hello-algo?

Hello Algo is a free, open-source introductory book on data structures and algorithms, with animated illustrations and code you can run. It is written for beginners, with a gentle learning curve, and it guides readers through the map of data structures and algorithms with diagrams that show how each operation changes the structure. The code is provided in more than a dozen programming languages, including Python, Java, C++, Go and Rust.

The book is available in Chinese, English, Japanese, Russian and Korean, and readers are encouraged to discuss questions and share insights in the comments on the website. The project is maintained as a free resource rather than a commercial product.

It suits beginners who want to learn algorithms visually, teachers looking for a freely available textbook, and programmers who want the same ideas in several languages side by side.

algoalgorithmalgorithmsbookdata-structuredata-structuresdata-structures-and-algorithmsdsa