3 ms·
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
by ThePawnBreak 14y ago
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 14y agoBut in no case would that be the shortest sequence. For your example a shorter one would be 9,10,15.