Given the root of a binary tree, find the 1-indexed level number that has the maximum number of nodes. If multiple levels tie for the maximum node count, choose the level among them with the maximum…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.