4 ms·
iirc joel wrote another post specifically about this. the problem here is that some people applying for a job aren't able to write a loop for summing numbers fr
by stefs 6y ago
iirc joel wrote another post specifically about this. the problem here is that some people applying for a job aren't able to write a loop for summing numbers from 1 to 100 in pseudocode. this is not about syntax errors, this is about weeding out impostors who can't program at all.
if your argument is: "but i know a genius programmer who's so socially inept and anxiety ridden that they can't write a loop if someones watching!" i.e. "sum = 0; for (i=1..100) sum += i" then sorry, but good luck elsewhere.
- mateo411 6y agoI have this problem. My problem is when I see this question I freeze and then I come up with a solution like this. n = 100; return n(n+1)/2