Jump to ratings and reviews
Rate this book

Grokking Data Structures

Rate this book
Don’t be perplexed by data structures! This fun, friendly, and fully illustrated guide makes it easy to learn useful data structures you’ll put to work every day.

Grokking Data Structures makes it a breeze to learn the most useful day-to-day data structures. You’ll follow a steady learning path from absolute basics to advanced concepts, all illustrated with fun examples, engaging industry stories, and hundreds of graphics and cartoons.

In Grokking Data Structures you’ll learn how

• Understand the most important and widely used data structures
• Identify use cases where data structures make the biggest difference
• Pick the best data structure solution for a coding challenge
• Understand the tradeoffs of data structures and avoid catastrophes
• Implement basic data collections like arrays, linked lists, stacks, and priority queues
• Use trees and binary search trees (BSTs) to organize data
• Use graphs to model relationships and learn about complex data
• Efficiently search by key using hash tables and hashing functions
• Reason about time and memory requirements of operations on data structures

Grokking Data Structures carefully guides you from the most basic data structures like arrays or linked lists all the way to powerful structures like graphs. It’s perfect for beginners, and you won’t need anything more than high school math to get started. Each data structure you encounter comes with its own complete Python implementation so you can start experimenting with what you learn right away.

Foreword by Daniel Zingaro.

About the technology

Data structures are vital for shaping and handling your data organization. They’re also an important part of most IT job interviews! Whether you’re new to data structures or just dusting off what you learned in school, this book will get you up to speed fast with no advanced math, abstract theory, or complicated proofs.

About the book

Grokking Data Structures introduces common and useful data structures that every developer needs to know. Real-world examples show you how data structures are used in practice, from making your searches faster to handling triage in an emergency room. You’ll love the fun cartoons, insightful stories, and useful Python code samples that make data structures come alive. And unlike jargon-laden academic texts, this book is easy-to-read and practical.

What's inside

• Fast searches using hash tables
• Trees and binary search trees (BSTs) to organize data
• Use graphs to model complex data
• The best data structures for a coding challenge

About the reader

For readers who know the basics of Python. A perfect companion to Grokking Algorithms!

About the author

Marcello La Rocca is a research scientist and a full-stack engineer. He has contributed to large-scale web applications and machine learning infrastructure at Twitter, Microsoft, and Apple.

The technical editor on this book was Beau Carnes.

280 pages, Paperback

Published August 13, 2024

36 people are currently reading
91 people want to read

About the author

Marcello La Rocca

4 books5 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
15 (51%)
4 stars
11 (37%)
3 stars
3 (10%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 8 of 8 reviews
Profile Image for Sina.
78 reviews2 followers
September 21, 2024
۳۱ شهریور ۱۴۰۳

این یه کتاب تخصصی برای کساییه که رشته شون کامپیوتره.
در کل، مفاهیم رو با ساده ترین و دم دستی ترین مثال ها منتقل میکرد و از هر گونه پیچیدگی دوری میکرد که برای درسی مثل ساختمان داده که همینجوریش خودش سخت هست، کارو خیلی راحت کرد.
۴ دادم چون حس کردم یه چیزیش کمه ولی متوجه نشدم.
در کل عالی.
1 review
September 3, 2024
It is a great book for understanding different concepts in data structures. It's suitable for beginners as well as experienced developers. The book covers the basic foundations and advanced concepts with code examples.
Profile Image for Tinni Ólason.
3 reviews
August 13, 2025
A very good introduction to fundamental data structures, such as arrays and linked lists, as well as other abstract data structures. The book features good illustrations and does not include a lot of math, which makes it good for understanding the logical connections between the concepts before diving into the math. Although a book describing the mathematical relationships, like CLRS, is highly recommended as a follow-up.
1 review
September 19, 2024
I'm really enjoying Grokking Data Structures it balances simplicity and depth, making it suitable for both beginners and intermediate programmers.

The author explains concepts like linked lists, stacks, trees, and graphs clearly, using real-world examples before diving into code. Each chapter includes code examples, making it easy to follow and implement the structures.
Profile Image for Maksim.
7 reviews2 followers
July 17, 2025
This is a nice book to refresh a pre-existing knowledge. It covers fundamental data structures and some of the algorithms on these structures.
I found last two chapters, dictionaries and graphs, a bit shallow - but author gives specific references to other literature here that addresses my concerns.
It could be a useful read for amateur programmers!
Profile Image for Lucille Nguyen.
427 reviews12 followers
November 4, 2024
Goes over data structures at a comfortable mix of application and abstraction. Not terribly mathematical, good for programmers who don't 'get' applied math as strongly as code intuition. Helps gel intuition, highly recommend.
Displaying 1 - 8 of 8 reviews

Can't find what you're looking for?

Get help and learn more about the design.