</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

03

:

12

:

14

Get this deal
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. ...