Loading page…
Five tree problems rated 1,600 to 1,800 need an answer at every node or for every root. The lecture shows the order and the two sweeps, the distance from the root, rerooting, the longest path that avoids the root, and the contest craft around them.
Welcome to the fifth camp.