Go Swift Python PowerShell Java C++ C# MATLAB C OCaml Lua PHP Elixir Ruby JavaScript Haskell Kotlin Rust TypeScript Scala Perl PureScript
Need help with grokking_algorithms?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.


Code for the book Grokking Algorithms (https://amzn.to/29rVyHf)

4.8K Stars 1.9K Forks Other 224 Commits 41 Opened issues

Services available

Need anything else?

Grokking Algorithms

This is the code in my book Grokking Algorithms.

Check out Python Tutor, a great website that guides you through Python code line by line.


Here's the errata page.


This repository contains every image in Grokking Algorithms in high resolution. These images are available for non-commercial use. If you use an image, please add "copyright Manning Publications, drawn by adit.io". You are welcome to use these images in any non-commercial materials (i.e. teaching materials, presentations, etc.)


  • The examples in this book are written in Python, but I'd like examples in Ruby, JavaScript, C, and other languages too. Please add examples in other languages!
  • Pull request are the quickest way to contribute to this repository but unfortunately I am not as responsive to them as I'd like to be. I'll get to them but it might take a while!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.