4 ms·
Umm, no. You write it on a piece of paper or white board while the interviewer watches. And it's gotta be pretty close to runnable as-is when you are done. If
by adambatkin 12y ago
Umm, no. You write it on a piece of paper or white board while the interviewer watches. And it's gotta be pretty close to runnable as-is when you are done.
If you can't write a loop, conditional and dump something to some output destination, all from memory, you have no business applying for a job as a Software Developer.
I will say that I'm lenient about knowing the modulus operator, since that's not an every-day thing for many people (though I would think it's pretty common with webdevs since that's traditionally been a popular a way of doing alternating row colors on tables).