Skip List (Express Lanes) Playground

Sorted linked list + random express lanes → O(log n) search without balancing. Step through search: jump right, drop a lane when overshot. Insert: height via…

Why it matters

A skip list gives O(log n) search, insert and delete on average like a balanced tree, with no rotations or colours: only pointers per lane. Redis uses it for sorted sets, LevelDB and RocksDB for memtables. Its order is kept, so ranges are easy, which a hash table cannot do.

The key idea

A coin instead of rebalancing

Common mistakes

Try it in this playground