News for hackers. Stuff that matters.
Re:Coding Interview Preparation in JavaScript by thedufer on Tuesday March 01, 2016 @11:36PM (#11208110)
> all you're looking for is someone's ability to conjure from memory an appropriate approach

So, it's worth mentioning that there are two types of algorithm questions.

You seem to be complaining about the "show me merge sort" style, where the interviewer picks a commonly-taught well-known algorithm. I have, in practice, seen this style exactly once (maybe I'm missing a broader trend, though) and it thus comes off as a strawman.

The other type involves solving problems that most interviewees, by shear numbers, can't possibly have seen before. Here, you're testing for on-the-spot thinking, not memorization. This is what I actually see when I interview.

Because in practice, how many people need to implement merge sort? 99% of them should call `List.sort` and be done. But the algorithm for traversing this strange dual-tree structure or whatever probably isn't in the standard library, and I do need someone who can do that.

Re:Coding Interview Preparation in JavaScript by novembermike on Wednesday March 02, 2016 @03:00AM (#11208641)
The problem is that the problem you think the interviewee hasn't seen is derived from common problems the interviewee has seen. 99% of the time, if the interviewee has a background in programming competitions then they will sound very intelligent, and the further they move from that background the worse they'll do. You're selecting for familiarity, not creativity.
Re:Coding Interview Preparation in JavaScript by dclowd9901 on Wednesday March 02, 2016 @01:05AM (#11208364)
> The other type involves solving problems that most interviewees, by shear numbers, can't possibly have seen before. Here, you're testing for on-the-spot thinking, not memorization. This is what I actually see when I interview.

And why do you think this is the best way to test for on-the-spot-thinking? I know I personally need a bit of time to soak in an algorithmic question to arrive at a viable conclusion. I might have some theories or hypotheses at first, but in the context of a 45 minute interview, it's simply testing nothing other than whether or not I've been exposed to this particular problem before. I happen to be great at thinking on the spot when I need to improvise through a problem or debug a problem, but that would fail your metric because you asked the wrong question.

I know this may come as a great surprise to you, but not all questions of a person's abilities can be answered by whether or not they can write a joint scheduling implementation in the amount of time it takes to get through a short lunch.

Re:Coding Interview Preparation in JavaScript by eximius on Wednesday March 02, 2016 @12:38AM (#11208288)
Yea, but knowing it before you enter the room is pointless. I'd just look it up.
Re:Coding Interview Preparation in JavaScript by abustamam on Wednesday March 02, 2016 @02:12AM (#11208511)
> The other type involves solving problems that most interviewees, by shear numbers, can't possibly have seen before. Here, you're testing for on-the-spot thinking, not memorization. This is what I actually see when I interview.

I just wrote this comment on another thread here, I think it is relevant:

https://news.ycombinator.com/item?id=11208509

Re:Coding Interview Preparation in JavaScript by jacalata on Wednesday March 02, 2016 @03:20AM (#11208707)
> most interviewees, by shear numbers, can't possibly have seen before.

yea, and in a huge coincidence, you're not going to hire most interviewees...