by SamReidHughes · 11y ago · 0 comments
My justification is that I have oodles of experience. I'm happy to prove it -- I just don't think generating an ASCII spiral is a good test of whether I am qualified or not.
I don't know where you stand on it, by the way; attribute my hostility to the question, not yourself.
First question: can my spiral use only right angles? If so, this gets pretty radically easier.
I also think that if you just draw a grid on the paper in front of you, start at the center of it, and start trying to spiral one cell at a time using ASCII characters you know, you'll quickly find a pattern that can be conveniently coerced into code.
I'd actually code this to demonstrate but I feel like Thomas will be happier if I do code that matters for Starfighter instead.
I've asked this specific question in interviews before, many times.
It's like a slightly harder version of FizzBuzz. It appears to have near perfect discrimination between "knows enough programming to use nested for loops with if-statements" and "does not". Programmers (good or bad), once the given the formal problem statement, solve it in under 20 minutes. People who don't actually really know how to program will never finish.
You might be imagining a slightly more difficult question, but it really is easy. It's an arbitrary coding challenge, sure, but one designed to not be tricky on purpose. The naive implementation works great.
First, I'd write down the specific things you are trying to determine with this question, and the metrics where by you could judge your employees after you've hired them on those things.
Second, I'd start collecting scores on that question (and all the others you do) and correlating them to "good" employees vs "bad" ones. That won't help you with the false negatives, but its usually enough to point out specifically terrible questions, of which the ASCII circle one is a doozy.
Drop it now, it's hurting your reputation with everyone who you ask it of.
(And if you aren't the originator/user of that question I apologize, substitute "they should" where appropriate)