Given a binary tree where all nodes have unique values, and a target node, calculate the minimum time required to burn the entire binary tree starting from the target node. Fire spreads to left…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.