3 ms·
This is a great, meaty blog post. I really like the first point about always coming up with a brute force solution so that you at least have something, and so t
by lpolovets 15y ago
This is a great, meaty blog post. I really like the first point about always coming up with a brute force solution so that you at least have something, and so that you have a chance to think about the problem a little. I've seen candidates skip the brute force approach too many times so that they can immediately work on a more optimal solution. At the end, they often end up without any solution at all. I guess Knuth's advice about premature optimization applies too interviews as well.
There's also a good Quora page that talks about the (complementary) coding side of algorithm questions: http://www.quora.com/What-is-needed-to-write-flawless-code-during-interviews http://www.quora.com/What-is-needed-to-write-flawless-code-d...