Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ThePawnBreak
on May 5, 2012
|
parent
|
context
|
favorite
| on:
Inverse Fizzbuzz
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 )
Danieru
on May 5, 2012
[–]
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: