logoalt Hacker News

Treap (Cartesian Tree)

24 points • by vismit2000 • last Monday at 11:19 AM • 2 comments • view on HN

Comments

sparkilyshpark • today at 7:44 AM

this is non-rotation treap (fhq treap), it is more common among competitive programming folks, for other cs folks, i believe the rotating variant is more popular: https://www.cs.umd.edu/class/spring2022/cmsc420-0101/Lects/l...

vismit2000 • today at 6:07 AM

A very nice problem solved using treap: https://stackoverflow.com/questions/79751600/solve-cses-moun...