3 ms·
No, I would never ask a question with a trick in mind. I am not interviewing for people who know tricks, because approximately zero percent of our business prob
by wikwocket 11y ago
No, I would never ask a question with a trick in mind. I am not interviewing for people who know tricks, because approximately zero percent of our business problems can be solved with tricks. I am looking for competent execution, because that's what matters day-to-day.
If I had asked a question like that, and if you can do some bitwise voodoo to solve it in O(n), great. But what I'd be looking for is, can you solve it all? Do you understand the problem statement enough to write a general sort of algorithm? If your first pass is O(n^4) and I point it out, can you understand this, and think of ways to improve? If I point out a problematic or erroneous input, can you reason about what will happen? Etc.
I think this is what we need to look for in interviews. Certainly not, can you solve this brain teaser I read in a magazine.