Binary Tree Level Order Traversal

 

102. Binary Tree Level Order Traversal

Solutions

  1. Keep track of level of each node.
  2. Append node to its corresponding level list.