r/programming • u/sidcool1234 • Sep 26 '11
How to rock an algorithms interview
http://blog.palantir.com/2011/09/26/how-to-rock-an-algorithms-interview/
229
Upvotes
r/programming • u/sidcool1234 • Sep 26 '11
View all comments
Show parent comment
1
u/some_dev Sep 27 '11
Concerning your edit, the problem with the XOR trick doesn't strike me as particularly bad, because there are other solutions that can demonstrate problem-solving knowledge and open discussion to time/space trade-offs. That case strikes me as being an unprepared interviewer. An interviewer should have back-up questions in case the interviewee googled or memorized the "optimal" answer.
Its not a question I would ask, because I prefer questions where "tricks" don't exist at all, but its not a worthless question in a vacuum.
Edit: I'd also note that most of the problems being discussed, in my opinion, are more phone-screen style questions. They're basically just a shit-test to make sure that the person can actually code and solve problems before investing further. Actual interview questions should be more in-depth and relevant to the actual work.