Loading page…
A search tree keeps its ids in order, and that order lets you skip. The lecture shows a total over a range, the k th smallest with a stack and with subtree sizes, an iterator, a balanced build from sorted ids and a trim, with the classic mistake behind each.
Your payments app keeps its receipt ids in a search tree.