Ad
  • Custom User Avatar

    Please read the docs in the detailed answer provided to your previous "gripe" with this kata. If your code submissions passes, you'll have a solution to view (which you currently do not).

    There is nothing missing from the description, examples, or test cases that would prevent you from being able to complete this kata.

    Best of luck.

  • Custom User Avatar

    When I first wrote this, I probably listened to more feedback than I should have.

    Q: Does that mean an array of length 100? Or does it mean an array whose elements are numbers from 1 to 100?
    A: I believe this at one point said, "an array whose elements are numbers from 1 to 100."

    Q: What does "the index of the array for the number" mean? I assume it just means that if x is the array, then x[i] should be equal to 'Fizz' if i is divisible by 3, etc. But the examples don't show that. It seems to show that if i+1 is divisible by 3, ...
    A: If the number in the returned array is divisible by n.

    Q: I'm not sure what it means to use defaults for the values.
    A: The Mozilla Developer Network has some nice documents explaining default arguments (parameters)

    Q: So are we supposed to write our own test?
    A: If you'd like to test, yes. There are docs for CodeWars testing.

    Q: I have no idea what the program is supposed to do, so how could I possibly write a test to see if it does it correctly?
    A: All the required information is included in the description and the examples. I suggest focusing on the examples, as they explicitly state exactly what the program should do.

    Try not to get frustrated. Perhaps try the original FizzBuzz kata first, then come back to this one.

    Please let me know if you have any further questions.

  • Custom User Avatar

    Thanks for letting us know Daryl. We're going to take a look into this for to see what happened for you. If you have details that can help us reproduce it please send us an email at info@codewars.com. In the future you can contact us there instead of on a kata and we'll get it much faster (even if we don't get to respond).