3 ms·
No one asks anyone to implement a red-black tree. There are too many special cases. Just know it exists and what problem it’s trying to solve. Fizz buzz is a h
by jonathankoren 5y ago
No one asks anyone to implement a red-black tree. There are too many special cases. Just know it exists and what problem it’s trying to solve.
Fizz buzz is a hello world problem. That’s why it exists.
- AlwaysRock 5y agoI'm giving examples of the range of questions that exist. I've been given Fizz Buzz in a real coding interview. I'm sure someone has been asked to implement a red-black tree before. Replace red-black tree implementation with some other silly overly complex question that isnt related to the actual job.
- jonathankoren 5y agoThey might ask you to implement sqrt(), but the question being asked isn’t “Can this person implement square root using Newton’s Method?”, it’s “How does this person tackle a problem without an obvious solution?”