Re:FizzBuzz: the test helps filter out the 99.5% of programm...
by mapimopi on Tuesday December 23, 2014 @09:01AM
(#8788106)
Why not just
this extra boolean variable out?
[ Parent
| on HN ]
Re:FizzBuzz: the test helps filter out the 99.5% of programm...
by ivanche on Tuesday December 23, 2014 @09:57AM
(#8788308)
I like to think it's matter of readability. "if (pureNumber)" vs. "if (i % 3 != 0 && i % 5 != 0)". Also, one extra variable vs. reversal of already mentioned condition. Yes, we're splitting hair here :)