Microsoft Interview Question

Flip a binary tree upside down and return an array of nodes (which are the new heads)

Interview Answer

Anonymous

Mar 17, 2015

I used recursion for this question, but failed to remember to pass the data structure itself in the parameters for the function, and so I ultimately was unable to make a working solution.