Meta(Facebook) | Phone Interview | Column Tree
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-12-06Added By Anonymous
Source: Link
Company: Meta (Facebook)
Role: unknown
Interview Stage: Phone Interview
Location: unknown
Year: unknown
Original Post Content:
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]