3 ms·
That was funny to go pen & paper to do the reversal of the linked list, C style, like in the old days. (aka, Java coding is tasteless)
by adn37 16y ago
That was funny to go pen & paper to do the reversal of the linked list, C style, like in the old days.
(aka, Java coding is tasteless)
- brown9-2 16y agoWhat does this mean? The article also states they ask other questions in which the candidate can respond in any language of their choice. The language isn't important here, it's knowing the algorithm and being able to put your ideas into code. You could ask the same exact question in Java and you should be able to get the same answer from people.
- substack 16y agoThe language is absolutely important, since in haskell I could just: > reverse [1,2,3,4] or if I couldn't use the Prelude (yikes!) reverse [x] = [x] reverse (x:xs) = reverse xs ++ [x] > reverse [1,2,3,4] The problem is that linked list traversal is a solved problem. Why not throw a novel and interesting problem at candidates? That way you could gain some insight into how they go about solving problems instead of how good the candidate is at memorizing other people's solutions that they could just as easily look up in a search engine in a few minutes.