53: Level order traversal of a binary tree 2

Given a binary tree, return levels traversal in descending order

 

Example 1

Input:     1   
          / \  
         5   3 

Output: [[5, 3], [1]]

Example 2

Input:     1   
            \  
             3 

Output: [[3], [1]]
Difficulty:Easy
Topic:Tree
Problem #:53