Snarky or not, you missed that the question was about a binary tree, not a binary search tree.
It's worse than that, those "algorithmic" interviews are testing IQ, more-so than knowledge. The hard knowledge that is tested is pretty much only the syntax of the programming language candidate decides to solve the…
Snarky or not, you missed that the question was about a binary tree, not a binary search tree.
It's worse than that, those "algorithmic" interviews are testing IQ, more-so than knowledge. The hard knowledge that is tested is pretty much only the syntax of the programming language candidate decides to solve the…