3 ms·
If they said "swap left & right at each node" it would have been easy. But they used a term that doesn't even yield an example in google searches - what kind of
by visarga 11y ago
If they said "swap left & right at each node" it would have been easy. But they used a term that doesn't even yield an example in google searches - what kind of "inversion" do they have in mind? It's as if everyone is on the same page but me.
- fishnchips 11y agoYou're allowed to ask your interviewer for clarification. You'll even get brownie points for asking smart questions.
- tzs 11y ago"Invert a binary tree" and "inverting a binary tree" both give me as the first result in Google this Quora question where someone gives an example and asks how to do it: http://qr.ae/7NDCg4 http://qr.ae/7NDCg4