cd38dc146d09692f5c3d344046e0128d9b996d6e
The current version of the formula incorrectly handles the factorial(0) and causes an infinite loop
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
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
- 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!
Description
Languages
JavaScript
11.8%
Zig
10.6%
C#
6.3%
Java
6.1%
C++
5.9%
Other
59.3%