Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
49
:
36
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.
...