Balance by Coin Flip
In short: the last two lessons kept a tree balanced by bookkeeping — a balance factor, four rotation cases, a parent-child colour rule. A treap gets O(log n) height a different way: give every node a random priority when it's inserted, and keep the highest priority at the top of every subtree, like a heap — using the exact same rotations from lesson 1, just triggered by a coin flip instead of a balance check. A skip list reaches the same O(log n) search cost by building shorter "express lane" linked lists above the full list, one promotion coin flip per insert, so a search drops down a level every time it would overshoot. Both trade bookkeeping for randomness, and both guarantee O(log n) on average, not in the worst case — an unlucky run of coin flips can still produce a chain.

A matchmaking queue sorted by rating
A matchmaking service indexes waiting players by skill rating so it can quickly find "closest rating available." Players queue and leave in an order nobody controls — sometimes a burst of similarly-rated players joins at once, which is exactly the pattern that degrades a plain BST. A treap keeps the index short without checking a balance factor on every insert:
Height 5 for 8 ratings, inserted in the exact ascending order that gave lesson 1's plain BST a height of 8. Nothing checked a balance factor — the shape came entirely from which node happened to draw the highest priority. A genuinely unlucky sequence of coin flips could still produce a chain, but across many inserts that's as unlikely as flipping 8 heads in a row.