This post contains affiliate links. As an Amazon Associate, TechAthletes earns from qualifying purchases. Prices, discounts and availability change — check the official site for current terms.
Grokking Algorithms and Grokking Algorithms, Second Edition share an illustrated introduction to algorithms. Manning describes both as beginning with sorting and searching before progressing toward more complex problems, including data compression and artificial intelligence. The second edition adds explicitly documented coverage of trees, updates the annotated code samples to Python 3, and discusses data structure performance with modern CPUs in mind.
The publisher also lists a previous-edition eBook as included with the second edition. Its first-edition page states the same relationship from the other direction: that edition is free when purchasing the second edition. Both statements are on Manning's own pages, retrieved on October 15, 2026. Manning’s second-edition description, Manning’s first-edition description.
The documented comparison therefore has two parts: the learning approach the editions share, and the changes Manning specifically identifies for the revision. Publication dates, page counts, example languages, and named subjects help distinguish the books without assuming that a shorter product description represents a complete inventory of its contents.
Both books carry the subtitle An illustrated guide for programmers and other curious people. The first edition is credited to Aditya Y. Bhargava. The second edition is credited to Aditya Y Bhargava and includes a foreword by Daniel Zingaro. Manning lists the original edition as published in May 2016, with 256 pages, and the second edition as published in February 2024, with 320 pages.
| Detail | First edition | Second edition |
|---|---|---|
| Publication listing | May 2016 | February 2024 |
| Listed length | 256 pages | 320 pages |
| ISBN | 9781617292231 | 9781633438538 |
| Code description | Annotated examples in Python | Annotated examples updated to Python 3 |
| Starting topics | Sorting and searching | Sorting and searching |
| Later applications named | Data compression and artificial intelligence | Data compression and artificial intelligence |
| Revision details | Original edition | New tree coverage and modern-CPU data structure performance discussion |
| Print presentation | Black and white | Black and white |
These identifiers and descriptions come from Manning's pages. The original page describes its examples as Python without specifying a version; the second-edition page explicitly names Python 3. First-edition listing, second-edition listing.
The original book’s description emphasizes applying common algorithms to everyday programming problems. Sorting and searching provide the starting point. As readers develop their ability to think algorithmically, the description moves toward more complex concerns such as compression and artificial intelligence.
Its examples combine diagrams with annotated Python code. The visual explanations and the code are both part of the stated teaching approach. Manning presents the book as a way to understand useful algorithms and their application without working through dense, multipage mathematical proofs. The emphasis is on learning how and when algorithms can be used in programs. Manning’s first-edition overview.
The first-edition page also includes an explanation of what an algorithm is: a sequence of steps for solving a problem or accomplishing a task. Its FAQ describes Big O notation as expressing how running time or space requirements grow with input size. That explanation connects the book’s practical emphasis with the task of comparing algorithm efficiency.
The same page lists supporting resources: source code, errata, a book forum, an animated GIF, and articles about arrays versus lists, graphs, recursion, and Dijkstra’s algorithm. It also lists YouTube material and a podcast about Grokking Algorithms in Python. These are resources presented alongside the book; their listing does not establish that each resource is a chapter or a replacement for the book’s explanations. Manning’s first-edition resources and FAQ.
For the second edition, Manning names the revision’s tree coverage in more detail. The additions include binary search trees, balanced trees, and B-trees. The publisher also identifies new discussion of data structure performance that accounts for modern CPUs. These are specific changes stated in the description, alongside the update of the annotated code samples to Python 3.
The second edition’s subject list includes search, sort, and graph algorithms. Its data structures include arrays, lists, hash tables, trees, and graphs. NP-complete and greedy algorithms are also named. The book description further identifies comparing performance trade-offs between algorithms as part of what readers will learn. Manning’s second-edition coverage.
The presentation remains explicitly visual. Manning lists more than 400 illustrations, detailed walkthroughs, and dozens of examples. It also states that every chapter includes exercises and code samples. Those details describe how the material is presented as well as what subjects it covers: illustrations and walkthroughs accompany explanations, while exercises and code examples appear throughout the chapters.
Manning’s audience statement says that advanced mathematics or programming skills are not required. The publisher continues to describe the second edition as an introduction, even as it names additional tree structures and performance considerations. Its overview connects the material with speeding up programs, simplifying code, and solving common programming problems. These are the publisher’s stated teaching aims. Manning’s second-edition presentation and audience.
For a comparison centered on Python, the distinction is precise: the original description promises annotated Python examples, while the revision explicitly updates those examples to Python 3. Manning’s first-edition description does not identify its Python version, so the original examples cannot be assigned one.
For a comparison centered on trees, the second edition has the more specific description. Binary search trees, balanced trees, and B-trees are named as new coverage. The first-edition overview does not provide an equivalent list. That difference establishes what Manning advertises about the revision; it does not provide a complete topic-by-topic account of the original text.
For a comparison centered on performance, the second-edition page explicitly mentions both algorithm trade-offs and data structure performance in the context of modern CPUs. The original page’s FAQ explains Big O as a way to compare growth in time or space requirements. These statements describe related aspects of efficiency, but Manning's pages do not quantify the amount of space each edition devotes to them. Second-edition description, first-edition FAQ.
The available formats add another documented distinction to the comparison. The second-edition page lists the eBook in PDF, ePub, and online formats. It states that the print option includes an eBook and separately lists an online-and-audio option. Both edition pages describe the printed books as black and white, so the emphasis on illustrations should be read alongside that print specification.
The previous-edition inclusion is a separate statement from the print option’s eBook inclusion. Manning advertises a free previous-edition eBook with the second edition, and the original product page says the first edition is free when purchasing the second. That wording establishes a purchase relationship; it does not establish that either complete book is freely available to everyone online. Second-edition formats and inclusion, first-edition inclusion notice.
The second-edition page also lists source code, source code on GitHub, a book forum, and an article titled Mastering Algorithmic Challenges. Its author biography describes Bhargava as a software engineer with a background in computer science and fine arts. These details accompany the publisher’s account of a book built around visual explanations and programming examples. Manning’s second-edition resources and author biography.
Manning’s descriptions support a comparison of advertised scope, presentation, and formats. They do not provide a complete chapter-by-chapter revision history or identify every changed example. They also do not specify the depth of treatment for each named tree structure. The clearest documented changes are the second edition’s Python 3 updates, new tree coverage, and discussion of data structure performance on modern CPUs, within the illustrated, practical introduction shared by both editions.
Where to find each edition
Both editions are listed on Amazon: Grokking Algorithms, Second Edition and the original Grokking Algorithms: An Illustrated Guide for Programmers and Other Curious People. The free previous-edition eBook described above is a statement on Manning's own product page, so if that bundle matters to you, read Manning's second-edition page before choosing where to buy.

Comments