Time Taken to Mark All Nodes
For each start node of a tree, find the time until every node is marked. Odd nodes spread in one time unit and even nodes in two.
For each start node of a tree, find the time until every node is marked. Odd nodes spread in one time unit and even nodes in two.