Learning paths · Skills · Intermediate

Data structures and algorithms: the ones you actually use

The structures behind every Map, list, index and queue you rely on, what they really cost on real hardware, and how to tell which one a problem needs.

0 of 13 done

The map

  • Not started
  • In progress
  • Done
  1. 01Cost and memoryBig-O, arrays, amortised growth0/2
  2. 02SequencesLists, stacks, queues, recursion0/3
  3. 03Finding thingsHashing, halving, trees0/3
  4. 04Putting things in orderHeaps and real-world sorts0/2
  5. 05Searching and reusing workGraphs and dynamic programming0/2
  6. 06Structures in productionTries and Bloom filters0/1
  7. 07Next: system designSame ideas, at service scale

Examples are plain JavaScript you can run on each page, and three topics step through their algorithm line by line: matching brackets with a stack, pushing into a heap, and the queue behind breadth-first search. Where a language's standard library makes a specific choice (Python's dict, Java's HashMap, V8's sort), the topic names it and links the documentation.

Where this path leads