Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
yeah, I was definitely assuming familiarity with regular FizzBuzz -- I could add extra description at the end for those who don't know it I suppose
In this case numbers to be replaced by "Fizz" are multiples of
2
, and numbers to be replaced by "Buzz" are also multiples of2
, so each multiples of2
are then replaced by "FizzBuzz" (ie "Fizz"+"Buzz") like it's usual to do playing FizzBuzzHope it helps.
; ) )
In your description you state to find the numbers whose multiples are being replaced by Fizz and Buzz. But one of the sample tests is Test.assertDeepEquals(reverseFizzBuzz([1,"FizzBuzz",3,"FizzBuzz",5,"FizzBuzz"]), [2,2]), I would expect the result too be [0, 0] as neither Fizz or Buzz are present in the array.
Is the description incorrect or is it the tests?