← Microsoft questions

Find time for fire to reach node in binary tree

Filed under Microsoft

Given a binary tree, a designated friend's node that catches fire, and a uniform spread rate of 1 unit per time to all neighbors (parent and children), find the time taken for the fire to reach your…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.