#data structures
Posts tagged with “data structures”.
6 posts
Data Structures Every Developer Should Know
A practical tour of the data structures you actually use: arrays, hash maps, sets, stacks, queues, trees, heaps and graphs, with real trade-offs.
Hash Tables Explained: How O(1) Lookup Really Works
Hash tables turn keys into array indexes with a hash function. Learn how they work, how collisions are handled, and why lookups are O(1) on average.
JavaScript Map and Set: When to Use Them
Map and Set are keyed collections with real advantages over objects and arrays. Learn the API, the differences, and when they win.
Linked Lists Explained: When They Beat Arrays
Linked lists store elements in nodes connected by pointers. Learn singly and doubly linked lists, their real costs, and when they actually beat arrays.
Stacks and Queues Explained With Real Use Cases
Stacks are last-in-first-out and queues are first-in-first-out. Learn how both work, how to implement them, and where each appears in real software.
Trees and Graphs Explained: Traversal and Real Uses
Trees model hierarchy and graphs model relationships. Learn the structures, the traversal algorithms, and where each appears in real software.