โ† Intuit questions

Tree Burning Sequence

Filed under Intuit

Given the root of a binary tree and a target node, find the sequence or time required in which nodes burn, assuming all neighbors (parent and children) of a burning node catch fire in 1 unit of time.

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 Intuit questions

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