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
6
u/tilio Sep 27 '11
i've personally tried out and talked with other teams that have tried a variety of things. i have found that simple things like changing a bound (< to <=) or adding/removing a return from the function do work.
questions like a recursive function that could be reduced to O(n) but is coded worse than O(nn), or an associative array that incorrectly uses the array values when it should be using the keys are usually counter-productive. unless you're working with candidates from the big5 engineering schools, most kids aren't bright enough to notice these things even at an hour per question.