Grokking Algorithms, Second Edition you own this product

Aditya Y Bhargava
Foreword by Daniel Zingaro
  • February 2024
  • ISBN 9781633438538
  • 320 pages
  • printed in black & white
  • Available translations: Simplified Chinese
Look inside
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 algorithms
  • Data structures such as arrays, lists, hash tables, trees, and graphs
  • NP-complete and greedy algorithms
  • Performance trade-offs between algorithms
  • Exercises and code samples in every chapter
  • Over 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.

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 algorithms
  • Data structures such as arrays, lists, hash tables, trees, and graphs
  • NP-complete and greedy algorithms
  • Exercises 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.

Breaks down a semester’s worth of Algorithms & Data Structures into easily digestible explanations and diagrams that don’t require deep knowledge of the underlying mathematical concepts.

Katie Sylor-Miller, Etsy

A rare combination of effective instruction paired with an enjoyable read. There is no better resource than Grokking Algorithms.

Ben Vinegar, Syntax.fm

A beautifully illustrated and lucid journey through the world of algorithms and data structures.

Stephen Diehl, Zerolink

The number one book I recommend to all new engineers and senior engineers looking to further build their skills. Shines by allowing you to truly understand algorithms and not just memorize the code.

Alexander Manning, Block
4.8
Out of 5.0
A graph showing this site's review totals.
Overall Rating
100%
of customers that
buy this product give
it a 4 or 5-Star rating.
Verified Buyer
“Great price”
March 15, 2025 by Georgi (Plovdiv, BG)
“Very interesting book”
Company Choice
Good books
Product Choice
Learn go
Verified Buyer
“Great buy”
December 14, 2024 by Oscar P. (CO)
“Great!”
Verified Buyer
“Great value”
November 18, 2024 by Artem Z. (PT)
“Must have book for learning how to program.”
Company Choice
Grokking books
Product Choice
Learn how to code
Verified Buyer
“Great value”
November 6, 2024 by Eric K. (CA, US)
“The book is clear and uses simple illustrations to make complex topics easier to understand.”
Company Choice
Book cover and detailed topic
Product Choice
Simple illustration for beginners
Verified Buyer
“Great buy”
October 31, 2024 by A Reviewer (US)
“Complex algorithms are explained in way that middle school students can understand. Great work by the author.”

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Grokking Algorithms, Second Edition ebook for free

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Grokking Algorithms, Second Edition ebook for free

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Grokking Algorithms, Second Edition ebook for free
loading book ...