Mobile Lead Interview Questions

3,617 mobile lead interview questions shared by candidates

Given a tree with potentially multiple child nodes, write an algorithm that describes how you would completely reverse (or mirror image) the tree. That is, given a tree with a root node of A and three children, BCD, and two children of B named EF, he wanted to generate a new tree that looked like a root node of A, then DCB with "FE" being the reversed children under B.
avatar

Mobile Software Engineer

Interviewed at Nest

3.5
Feb 5, 2016

Given a tree with potentially multiple child nodes, write an algorithm that describes how you would completely reverse (or mirror image) the tree. That is, given a tree with a root node of A and three children, BCD, and two children of B named EF, he wanted to generate a new tree that looked like a root node of A, then DCB with "FE" being the reversed children under B.

Viewing 21 - 30 interview questions

Glassdoor has 3,617 interview questions and reports from Mobile lead interviews. Prepare for your interview. Get hired. Love your job.