Comment by thanksgiving
11 years ago
I graduated this spring and I don't know how to do that. Now, I am not a boy genius but I doubt it is a CS fundamental.
11 years ago
I graduated this spring and I don't know how to do that. Now, I am not a boy genius but I doubt it is a CS fundamental.
What material did you spend time on that you don't know how to reverse a binary tree?
It isn't a difficult problem, even having never seen it before. This is one of those warmup problems to test how comfortable a candidate is with basic concepts such as recursion.
I think it's a pretty easy question. Pretty much all algorithms courses teach you enough to be able to solve this question.