Problem 3967 · Medium

Finish Time of Tasks II

Each task in a tree finishes from its children’s earliest and latest finish times; try every root and keep the earliest finish.

Open the interactive visualisation