Search
⌘K

Leetcode 102. Binary Tree Level Order Traversal

Return the values of a binary tree grouped by depth, from left to right for each level (i.e., a level-order / breadth-first traversal). For an empty tree return an empty list.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early August, 2025

Meta

Senior

Late January, 2025

Meta

Staff

Early October, 2024

Meta

Mid-level

The interviewer expected me to give solutions for DFS and BFS both

Comments

Your account is free and you can post anonymously if you choose.