Return an array of integers from tree, column by column. For example:
Input:
3
/ \
2 1
/ \ \
0 5 7
/ \
1 5Output:
[1,0,2,5,3,5,1,7]
Comments (5)
Return an array of integers from tree, column by column. For example:
Input:
3
/ \
2 1
/ \ \
0 5 7
/ \
1 5Output:
[1,0,2,5,3,5,1,7]