Reference: Bradford Tuckfield, Dive Into Algorithms
Coded with Gemma 4 26B