3 ms·
Another good one is the "does linked list have loop" question. If you don't know the answer, you have to figure it out from inspiration. Took over a decade for
by lordnacho 7y ago
Another good one is the "does linked list have loop" question. If you don't know the answer, you have to figure it out from inspiration. Took over a decade for the first guy to do it.
- rofo1 7y agoThe second pointer going twice the speed? I don't know the story, but I know the solution, because I've seen it. Similarly for many other tricks. I have never used it in real-life development, though.
- lordnacho 7y agohttps://www.nomachetejuggling.com/2014/06/24/the-worst-programming-interview-question/ https://www.nomachetejuggling.com/2014/06/24/the-worst-progr...
- wnmurphy 7y ago> I know the solution, because I've seen it. > I have never used it in real-life development, though. I'd wager both of these are true for the majority of technical interview problems, and I think that's exactly the point.
- goatinaboat 7y agoIn real life development, if you do have a circular linked list unintentionally, what can you do other than terminate the program?
- jiveturkey 7y agobut that one should be, in fact, well known. i've been out of school forever but surely it has to be taught now? so, this question isn't testing if you can find a loop, it's testing whether you have enough experience to have heard of it. which is a fine enough thing to test for. i understand your point, that questions are often designed poorly, but your example isn't necessarily a good one.
- lordnacho 7y agoIf it's about experience, why not ask whether the person has an opinion on XYZ framework or other thing that you actually use?