Re:Tech sector job interviews assess anxiety, not software s...
by taurath on Wednesday November 10, 2021 @10:15PM
(#29184080)
Sure, and yes I can do that, but you are also judged in comparison to people who just graduated and used them in theory classes all the time, or who are demons on hackerrank etc.
If you are talking about a self-balancing binary search tree, then, yeah, most people will have to memorize the implementation, as it would take much more than an hour to implement correctly. But if you are talking about plan binary trees, most good engineers will be able to write a simple enough implementation for the interview in a couple of minutes. And it won't be from memory, it will come from _understanding_ of how the binary tree is structured. The beauty here is that there is no need to memorize the implementation, as it is much easier to remember the definition of a tree and then write an implementation based on that.