← All lessons
Algorithms
7 lessons you click through step by step
- How hash tables workHash a key into a bucket, chain the collisions, and watch the table double when it fills up
- How binary search worksHalve a sorted array until one cell is left, then break it with unsorted data
- How Big O notation worksCount the steps five loops take, then push n to a million and see which ones blow up
- How recursion worksPush a frame per call, unwind from the base case, then overflow your browser's real stack
- How graph search worksWalk BFS with a queue and DFS with a stack, then race both through a maze you draw
- How consistent hashing worksPut servers and keys on a hash ring, add a server, and see only a few keys move where hash % N moves almost all
- How database indexes workScan every row, then jump straight to the row with a B-tree