trog.codes

Data Structure Analogies

  1. Array: Row of numbered cubbies

array

  1. Linked List: Treasure map of clues

linked-list

  1. Hashmap: Locker with your name on it

hash-table

  1. Stack: Stack of books

stack

  1. Queue: Standing in line for tickets

queue

  1. Graph: Spiderweb

graph

  1. Tree: Tree

tree