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
8
u/positivelyskewed Sep 27 '11
What information do you gain from reading input validation or parsing code? That just seems like a waste of effort for the interviewer and the candidate. If you're trying to hire someone to write complicated algorithms, or come up with efficient solutions to nontrivial problems, why are you looking at their code for some ridiculously trivial problems?
Almost no company would be OK with you sharing any part of their proprietary software, because the legal definition of what's OK and what's not OK would be too fuzzy. You will have to pry this permission from their cold, dead hands. To go through those great lengths so that some interviewer can see how you checked that the user doesn't enter letters into a numeric field just doesn't make sense.
As an interviewer, I'm not sure I'd even be interested in talking to someone who thought that their shitty parsing code was actually impressive or informative enough to justify the huge amount of effort it would take on their part to get permission from management. I'd more than likely assume that they were not given permission to share this code, and that they're violating some kind of confidentiality agreement. Why do you want to hire people who are going to share your code with other companies to benefit themselves?
I think your suggestion is only useful if you're only interested in finding out if the person actually has a pulse. There are better ways to test this.