LC #545: Boundary of Binary Tree, but do in only 1 pass of Tree
?? FAANG favourite question of last year. This question teaches you to hone your edge case tackling skills.
???? Follow-up : Solving the question in 3 passes of entire tree is trivial but can you do it in just 1 pass?
? Central Concept:
? Edge Cases to be wary of:
?? Overall, the follow-up question makes this a pretty challenging question so I would advise you to practice it before your coding interview.