Given the root of a binary tree, find the maximum number of bends in any path from the root to a leaf node. A bend is defined as a direction change along the path, specifically when moving from a 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.