Categories: Shop

Grokking Algorithms, Second Edition


Price: $49.99 - $39.70
(as of Apr 18, 2026 05:57:39 UTC – Details)



A friendly, fully-illustrated introduction to the most important computer programming algorithms.

Master the most widely used algorithms and be fully prepared when you’re asked about them at your next job interview. With beautifully simple explanations, over 400 fun illustrations, and dozens of relevant examples, you’ll actually enjoy learning about algorithms with this fun and friendly guide!

In Grokking Algorithms, Second Edition you will discover:

Search, sort, and graph algorithmsData structures such as arrays, lists, hash tables, trees, and graphsNP-complete and greedy algorithmsPerformance trade-offs between algorithmsExercises and code samples in every chapterOver 400 illustrations with detailed walkthroughs
The first edition of Grokking Algorithms proved to over 100,000 readers that learning algorithms doesn’t have to be complicated or boring! This revised second edition contains brand new coverage of trees, including binary search trees, balanced trees, B-trees and more. You’ll also discover fresh insights on data structure performance that takes account of modern CPUs. Plus, the book’s fully annotated code samples have been updated to Python 3.

Foreword by Daniel Zingaro.

Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.

About the technology

The algorithms you use most often have already been discovered, tested, and proven. Grokking Algorithms, Second Edition makes it a breeze to learn, understand, and use them. With beautifully simple explanations, over 400 fun illustrations, and dozens of relevant examples, it’s the perfect way to unlock the power of algorithms in your everyday work and prepare for your next coding interview—no math required!

About the book

Grokking Algorithms, Second Edition teaches you important algorithms to speed up your programs, simplify your code, and solve common programming problems. Start with tasks like sorting and searching, then build your skills to tackle advanced problems like data compression and artificial intelligence. You’ll even learn to compare the performance tradeoffs between algorithms. Plus, this new edition includes fresh coverage of trees, NP-complete problems, and code updates to Python 3.

What’s inside

Search, sort, and graph algorithmsData structures such as arrays, lists, hash tables, trees, and graphsNP-complete and greedy algorithmsExercises and code samples in every chapter

About the reader

No advanced math or programming skills required.

About the author

Aditya Bhargava is a Software Engineer with a dual background in Computer Science and Fine Arts. He blogs on programming at adit.io.

Table of Contents

1 Introduction to algorithms
2 Selection sort
3 Recursion
4 Quicksort
5 Hash tables
6 Beadth-first search
7 Trees
8 Balanced trees
9 Dijkstra’s algorithm
10 Greedy algorithms
11 Dynamic programming
12 k-nearest neighbors
13 where to go next

From the Publisher

Publisher ‏ : ‎ Manning
Publication date ‏ : ‎ March 26, 2024
Edition ‏ : ‎ 2nd
Language ‏ : ‎ English
Print length ‏ : ‎ 320 pages
ISBN-10 ‏ : ‎ 1633438538
ISBN-13 ‏ : ‎ 978-1633438538
Item Weight ‏ : ‎ 1.2 pounds
Dimensions ‏ : ‎ 7.38 x 0.5 x 9.25 inches
Best Sellers Rank: #31,817 in Books (See Top 100 in Books) #4 in Computer Programming Languages #14 in Python Programming #26 in Software Design, Testing & Engineering (Books)
Customer Reviews: 4.8 4.8 out of 5 stars (246) var dpAcrHasRegisteredArcLinkClickAction; P.when(‘A’, ‘ready’).execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( ‘acrLink-click-metrics’, ‘click’, { “allowLinkDefault”: true }, function (event) { if (window.ue) { ue.count(“acrLinkClickCount”, (ue.count(“acrLinkClickCount”) || 0) + 1); } } ); } }); P.when(‘A’, ‘cf’).execute(function(A) { A.declarative(‘acrStarsLink-click-metrics’, ‘click’, { “allowLinkDefault” : true }, function(event){ if(window.ue) { ue.count(“acrStarsLinkWithPopoverClickCount”, (ue.count(“acrStarsLinkWithPopoverClickCount”) || 0) + 1); } }); });

Staff Writer

Share
Published by
Staff Writer

Recent Posts

279. “He lost his $150k job, but I make every decision. Can we fix this?”

    Ramit unpacks how to manage money as a couple after a job…

18 hours ago

Want to Make $200K? This Fast-Food Chain Pays Managers That Much

In-N-Out store managers now earn over $200,000 a year on average, the company’s chief operating…

1 day ago

Internet Marketing HQ

Product Name: Internet Marketing HQ Click here to get Internet Marketing HQ at discounted price…

3 days ago

Laid Off at 60? Here Are Some Tips for Starting Over

When you lose your job at 60, you might feel too old to get a…

3 days ago

Clozure – AI Business OS — $99/month | Clozure

Product Name: Clozure - AI Business OS — $99/month | Clozure Click here to get…

4 days ago

I’ve Sold Vintage Goods for Over 30 Years — Here Are 5 Sneaky Haggling Tricks Buyers Use

If you’re looking to liquidate piles of stuff that have accumulated in the basement, garage…

5 days ago