Perl 5 -ap, 52 bytes
$_=332312332132330x$F[1];/(.*?$F[0]){$F[1]}/g;$_=pos
Where 0=FizzBuzz, 1=Buzz, 2=Fizz, 3=Number in the first input.
Kjetil S
- 6.2k
- 11
- 23
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange