My Blog List

[Leetcode Solution] Binary Tree Level Order Traversal II

Analysis

  • Perform BFS on the binary tree layer by layer stored by two vector alternatively
  • Print the nodes within one layer separatively

Note

Code


No comments:

Post a Comment

Enter you comment