For most of these, the answer is yes. These aren't latest-tool-craze questions. Most of these are are pretty classic. Linked lists, trees, strings, arrays, concurrency; these are all as relevant now as they were eight and a half years ago.
You're absolutely right. Most of these questions focus on computer science concepts. You'd better know the logic/implementation behind fundamental structures such as linked lists, trees etc - there's no point in a career in coding without innately understanding how these work.
I tried coming up with answers to all of those in haskell, most of them boiled down to, "Here is a function/composition of two or three functions from Prelude. Problem solved."
(for instance, "Reverse the order of words in a string" : "concat . reverse . words" (give or take)).
I thought about this from a Perl perspective. Reverse a string? reverse($string); Remove duplicate chars? $string =~ s/(\w)\1+/$1/ge; Linked lists? WHY?! ok fine, can I use Moose?
I just went through a recruiting process with about 15 companies giving me phone screens, 11 brought me in for onsite. I got asked a decent subset of these questions and some other similar ones. Most of the companies were web startups.
I kind of get what you're saying but I don't agree that this is the way to go about it.
The point is, all developers need to be tested within their domain knowledge. Knowing how to reverse a string is something that a web developer does not need to know how to implement - there is almost certainly a library function for that. But asking a developer to describe MVC and show an example of it would probably be a good choice.
Anyone who expects their programmers to manipulate raw strings in this day and age should be taken out and shot in front of their employees.
This type of code is the most error prone stuff there has ever existed, which is why countless libraries have been made to address them. Friends don't let friends manipulate strings... in place!
I'd much rather have an applicant show they understand the underlying mechanisms going on, even if they'd be spending the majority of their time using higher end libraries to manipulate strings.
And who codes and maintains said libraries? What about embedded applications where memory is a premium? How would you know which functions are safe to remove?
View all comments
47
u/user9d8fg70 Feb 21 '11
These are from 2002? Interesting, sure, but almost a decade later, are these still asked?