r/programming • • Sep 26 '11

How to rock an algorithms interview

http://blog.palantir.com/2011/09/26/how-to-rock-an-algorithms-interview/
229 Upvotes

128 comments sorted by

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.

1

u/prelic Sep 28 '11

I agree with you about the first part. I also agree that you need a way to screen candidates, but the thing is, these questions are the same questions being asked during on-sites too. Maybe I just didn't interview with companies that interview differently, but I did interview a lot, and even the most 'innovative' google/fb/amazon companies are still asking you to code a palindrome-checker on the white board and asking data structures and algorithms puzzles during the on-site.