3 ms·
I write code like this all day long and the way you phrase the question might have stumped me. First, I would feel like if I have to ask questions if you then
by valuearb 6y ago
I write code like this all day long and the way you phrase the question might have stumped me.
First, I would feel like if I have to ask questions if you then I’m missing something obvious you want me to be able to deduce. And if I take too long I’d fail your test.
So I’d jump in merrily and work up a quick and dirty version before even realizing that the output has ambiguities. Hopefully at that point I’d ask how you want them resolved, but maybe I decide you want to see me to make my own decisions and I’d come up with my own way to handle them.
- ajkjk 6y agoI dunno, I'm sympathetic to interview questions being weirdly hard cause of the stress, but that question would be something I could solve in less than 60 seconds in several languages. I think it's fair to expect people to ace it without difficulty.