egonSchiele/grokking_algorithms

Code for the book Grokking Algorithms (https://www.amazon.com/dp/1633438538)

JavaScript

13,704

287 commits

updated Apr 12, 2026

See the code

README

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.

Errata

Here's the errata page.

Images

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.)

Contributing

Thanks for wanting to contribute to this repo!

If you have found a mistake in the book or have a question, please email me as that will be the best way to get a response. My email is listed on my website, adit.io. If you would like to make a change, please go ahead and open a PR with your suggested change. I am quicker at responding to those than I am to issues.

It takes me a long time to respond to PRs. It's something I'm trying to get better at, but I apologize in advance for how long it will take. I will eventually get to it.

The contributions that are most useful are:

  • fixing errors in existing code
  • adding examples to new languages
  • modernizing code as the language evolves
  • making code easier to read.

I'm less likely to merge code that involves stylistic changes, and I'm very unlikely to merge PRs that add complex optimizations, as the main purpose of this repo is to have easy to read examples that help people understand concepts.

Thanks for contributing and I hope you're enjoying the book!

egonSchiele/grokking_algorithms

Code for the book Grokking Algorithms (https://www.amazon.com/dp/1633438538)

JavaScript

13,704

287 commits

updated Apr 12, 2026

See the code

README

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.

Errata

Here's the errata page.

Images

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.)

Contributing

Thanks for wanting to contribute to this repo!

If you have found a mistake in the book or have a question, please email me as that will be the best way to get a response. My email is listed on my website, adit.io. If you would like to make a change, please go ahead and open a PR with your suggested change. I am quicker at responding to those than I am to issues.

It takes me a long time to respond to PRs. It's something I'm trying to get better at, but I apologize in advance for how long it will take. I will eventually get to it.

The contributions that are most useful are:

  • fixing errors in existing code
  • adding examples to new languages
  • modernizing code as the language evolves
  • making code easier to read.

I'm less likely to merge code that involves stylistic changes, and I'm very unlikely to merge PRs that add complex optimizations, as the main purpose of this repo is to have easy to read examples that help people understand concepts.

Thanks for contributing and I hope you're enjoying the book!

Project health

Overall

3.1/10

Maintained

0/10

Code review

9/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 31)

Leandro Pereira

287 followers · starred Jul 2022

Gergely Bräutigam

260 followers · starred Dec 2021

Jonatan Ivanov

443 followers · starred Feb 2019

Martin Moene

564 followers · starred Aug 2018