Re:America’s Need for Skilled Immigrants Isn’t Going Away
by QuercusMax on Wednesday October 24, 2018 @02:16PM
(#18294938)
You'd be shocked how many people don't know about the modulus operator.
[ Parent
| on HN ]
Re:America’s Need for Skilled Immigrants Isn’t Going Away
by repsilat on Wednesday October 24, 2018 @03:07PM
(#18295410)
Even so... try dividing. If it looks like division truncates, check the product. If it looks like floating point division, check if rounding/truncation changes the value.
Or keep two extra counters that you increment every iteration and reset when they hit 3 or 5.
Not knowing modulus or bitwise ops etc isn't a good sign, but it isn't disqualifying. Not being able to get fizzbuzz working should be disqualifying, though, unless you're willing to teach someone to program completely.