Diagonal Order Of A Binarytree
easy
1. Given a Binary Tree, print Diagonal Order of it. 2. For more Information watch given video link below.
Constraints
0 <= Number of Nodes <= 10^5 -1000 <= value of Node data <= 1000
Format
Input
Input is managed for you.
Output
Output is managed for you.
Example
Sample Input
15
1
1
-1
1
1
-1
1
-1
-1
1
-1
-1
1
-1
-1
Sample Output
0 -> 1 1
1 -> 1 1 1
2 -> 1 1
Question Video