New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Bloomberg
Coding Question
AI Insights
Quick Summary
Traverse an N-ary tree level by level to count nodes at each depth.
Identify and return the shallowest level with the maximum node count.
Handle edge cases such as empty trees or single-node inputs.
What This Tests
Breadth-First Search and level-order traversal techniques
Queue management for layered processing
Tree structure navigation and node aggregation
Tie-breaking logic and boundary condition handling
Common Patterns
DFS/BFS
Graph Traversal
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Stdout
-