This is the code in my book Grokking Algorithms.
Also check out Python Tutor, a great website that helps you step through Python code line by line.
This repo also contains every image in Grokking Algorithms, in hi-res. These images are available for free 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 teaching materials, presentations, etc.
- I'm pretty responsive to PRs. That is the quickest way to contribute to this repo.