Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or even if you don't know anything about integer math, you can use repeated subtraction. Or ask for help on finding a multiple and do the rest of the structure yourself. Or keep a counter to 3 and a counter to 5 and reset them when they fill up.

Definitely not a gimmick question about whether you know about modulus.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: