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

If sequences could be gappy, wouldn't the solution be just mapping fizz to 3, buzz to 5 and fizbuzz to 15? ( or multiples of those numbers, if duplicates aren't allowed )


But in no case would that be the shortest sequence.

For your example a shorter one would be 9,10,15.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: