Binary Tree Level Order Traversal
Binary Tree Level Order Traversal
Problem Statement
Given a binary tree, populate an array to represent its level-by-level traversal. You should populate the values of all nodes of each level from left to right in separate sub-arrays.
Example 1:
Example
原创
2020-09-09 00:21:26 ·
179 阅读 ·
0 评论