3 ms·
Good point. To be fair, however, he's probably just being intellectually curious -- that is, "hacking". There's no way you'd test a number for evenness in real
by benhoyt 18y ago
Good point. To be fair, however, he's probably just being intellectually curious -- that is, "hacking". There's no way you'd test a number for evenness in real life by either recursion or iteration. You'd always do either (n&1)==0 or n%2==0.