r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

0

u/rooktakesqueen May 10 '15

So if you ask them to sort a list and they implement the simplest insertion sort possible, you're fine with that?

3

u/random314 May 10 '15

If I tell them the algorithm for quick sort, I'd expect them to be able implement it.

0

u/rooktakesqueen May 10 '15

Then why not give a less well-known algorithm, so you're not also passing along candidates who can't code the algorithm on their own but can memorize its implementation?

Sort just seems like a really poor choice for an interview. It hits all the worst traits of: unrelated to actual daily work, rewards memorization over actual skill, and such a cliche to ask as an interview question that it's in every interview prep book you can find.

2

u/prof_hobart May 10 '15

Sort just seems like a really poor choice for an interview. It hits all the worst traits of: unrelated to actual daily work, rewards memorization over actual skill

You keep missing the bit where it's not about the sort (that's just a simple example to frame the problem). It's about loops, which are things you need to use on a daily basis and aren't about memorisation.

However, they are things that some people coming in for junior coding jobs somehow don't seem to get, and it's probably a good thing to weed them out very quickly.

→ More replies (6)