by blindhippo · 9y ago · 0 comments
As I explained above, my question is a warm up - meant to break the ice, calm nerves. But it's surprising to me how effective even a simple list traversal is at identifying weaknesses in a candidates programming ability.
E.g. - "functional" is simply something like:
subset = filter( predicate, superset )
... but on a "procedural" platform, it's a bit more challenging, starting with how much space to allocate for the result, or whether to mutate the input, and other wading through the swamp.But, yeah, I can see how it would get people to start up talking somewhere, or else go into "deer in the headlights" mode.
[1] https://docs.python.org/2/library/itertools.html#itertools.c...
But then I take away the library/method and re-state the problem. Because the point is to see if they can understand the problem, and devise a solution.
Now, I'm generally against asking hard-core CS questions in a live interview... but a simple bozo filter is probably a good idea.
It is a low bar skills wise, and it tells a lot within a very short amount of time.