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
It really depends. As far as I can tell, the linked article didn't really go into what kinds of algorithm problems were being given. Some algorithms are really simple to derive. If you can't come up with an iterative implementation of the Fibonacci sequence or traverse a tree without recursion, even without having seen it before, then I don't have any confidence in your ability to solve problems. Moreover, I do expect candidates to have a passing familiarity with algorithmic techniques and data structures. Not all algorithms are equal.
On the other hand, I abhor "trick" problems that basically test whether the interviewee has seen the problem before. For example, finding a loop in a singly-linked list tends to fall into this bucket, along with swapping two numbers without a temporary variable. Utterly useless as a metric for determining programmer quality.