Given a binary tree, if all of its leaf nodes are set to fire at the same time and each node takes 1 second to burn completely,
Answers
Answered by
0
A binary tree is started burning from a leaf node. What is the time(1second to burn from node to node) it takes to entire tree get burned? The fire will spread to all the paths from a node
Similar questions