← Accolite questions

Burn a Binary Tree

Filed under Accolite

Given the root of a binary tree and a target value, find the minimum time required to burn the entire tree. The fire starts at the target node at time 0. In each second, the fire spreads from every…

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

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