Balanced Tree — Data Structures Bamboo trees: 10 levels of BST insert and delete, AVL LL and LR rotations, heap sift up and down and trie autocomplete. A real tree invariant validator.
Lessons this game drills Binary Search Tree : A BST (binary search tree) is a binary tree with one rule at every node: all the values on its left are smaller than that node, and all the values on its…Binary Tree : A binary tree is a tree (a data structure that branches) where every node has a value and at most two children: left and right. It has no rule about values…Tree Traversal : A tree traversal visits every node of a tree exactly once, in a particular order. The order depends on when a node is written down, compared with its left and…Heap / Priority Queue : A priority queue serves the most important item first, and a heap is how you build one. A heap is a binary tree stored in an array. A min-heap keeps every…Trie : A trie is a tree that stores words one letter per node, and words with the same start share nodes. insert walks down letter by letter, creates the nodes that…Float Scales : Reorder float additions so the result comes out exact, even when 1e16 + 1 = 1e16: 18 levels of IEEE-754, the 2^53 limit and precision loss.Stack Builder : Operate a stack: 12 levels of push, pop, peek and LIFO. The most basic stack data structure game for anyone new to DSA.Hash Hunter : Hunt through a hash map: 12 levels of put, get, collisions and resizing. A hash table game that shows why O(1) can turn into O(n).Guess the Big O : Guess the Big O: 15 levels reading code and picking O(1), O(n), O(log n) or O(n²). An algorithm complexity game for insight into code performance.Graph Trail : Walk a weighted graph node by node to find the cheapest path, Dijkstra style: 14 levels of shortest paths and directed graphs.