Started By
Message

re: Nigerian software engineer detained by U.S. Customs at airport and given test

Posted on 3/1/17 at 2:34 pm to
Posted by PrivatePublic
Member since Nov 2012
17848 posts
Posted on 3/1/17 at 2:34 pm to
So did he answer it or no?

It doesn't sound like they asked for the most efficient answer, so all he had to do was iterate the tree, find the median, then sort left and right based on the median. Voila, balanced tree. While not the most efficient approach, it will give the correct answer.

A real engineer should be able to think of trivial, inefficient answers like this.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram