July 4th Sale
Limited Time Deal: Unlock all premium questions for over 40% off
$10.42$6.25
10
:
09
:
29
:
22
Back to Dashboard
Densest Tree Level
Medium
Question
You are given an N-ary tree where each node has a value and a list of children. Return the 1-indexed level that contains the most nodes. If multiple levels have the same maximum count, return the smallest level number. Return 0 if the tree is empty.
...