CodingReported in a candidate post, Feb 2018
Time to burn an entire binary tree
Filed under ixigo
The question
Each node also knows its parent. If a node is set on fire, fire spreads to its parent and children each second; compute the time for the whole tree to burn.
No write-up yet. Related questions below have one.
Related ixigo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.