Loading page…
Four problems rated 2,000 to 2,200 put many questions to one tree. The lecture shows how to flatten the tree into an array with an Euler tour, subtree totals as ranges, the lowest common ancestor and the distance formula, heavy light decomposition, and the contest craft around them.
This is the last tent of the seventh camp.