Meta(Facebook) | Phone Interview | Column Tree

Return an array of integers from tree, column by column. For example:

Input:

			3	
		  /    \
		2		1
	  /   \       \
	0		5		7
  /   \
1		5

Output:

[1,0,2,5,3,5,1,7]

Comments (5)