3 ms·
You are correct, and this is unfortunate. "Any fool can write a loop," but sometimes it takes some basic math knowledge to realize that you don't need a loop. O
by Koshkin 9y ago
You are correct, and this is unfortunate. "Any fool can write a loop," but sometimes it takes some basic math knowledge to realize that you don't need a loop. Or, for example, that you can iterate through a sequence of squares simply by growing the sum of the odd numbers (which, I think, could be a sensible interview question).