by soheil · 9y ago · 0 comments
They are just looking for smart people. If you ever looked it up it's 5 lines of code. That's the whole point they're not forcing you to learn something:
A) so esoteric you will never encounter in your programming career B) so complicated that you'd have to spend days practicing it, etc
In my opinion a lot of these questions are disguised IQ tests wrapped in algorithms since they can't blatantly ask "brain teaser" questions anymore.
Which lead them to refuse to give a job to the guy that actually developed a software used by those with higher IQ to come up with tree inversion algorithms?
multiply that 5 lines of code by all the possible algorithms they couldve asked about instead of this one. Thats what you need to know walking into the interview, seems kinda stupid
Some questions are fair, but there's a reason most candidates spend weeks/months practicing. Good luck pulling off something like a topological sort if you haven't studied the algorithm recently.