← Flipkart questions

Time to Burn Binary Tree from Leaves

Filed under Flipkart

Given a binary tree where all leaf nodes catch fire simultaneously and each node takes 1 second to burn completely, determine the minimum time required for the entire binary tree to burn.

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

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