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.
No random tests in Haskell
Approved
python new test framework is required. updated in this fork
fixed by latest fork
Approved
python new test framework is required. updated in this fork
You're making a function that will be called a number of times. All your code should (in 99% of cases) be contained inside this function. Any global variables retain state between calls.
This comment is hidden because it contains spoiler information about the solution
Many thanks!!!
You shouldn't use input on Codewars in general. A number will be fed to your function in the tests. Just assume that function will receive the necessary parameters to execute without having the user entering any kind of number. Hope this helps! If you reset your solution, you should use "n" as the number who will be necessary to code your solution.
.
Scala translation with upgrade to 3.0
Oh damn 💀
They are not identical.
My JS solution is passing the preliminary tests for 10 numbers, one number, and one random 1-100 integer, but for the 30 and 100 numbers tests that run when I try to attempt the kata it's returning a fail. Here's the error code for 30, and it's the same with 100 - i.e., it looks like the expected and actual results are identical! Am I missing something simple here?
Thanks in advance! (edited to try and get the actual and expected arrays to align so they can be more easily compared...)
Fails with 30 numbers!: expected
'[1,2,"Fizz",4,"Buzz","Fizz",7,8,"Fizz","Buzz",11,"Fizz",13,14,"Fizzbuzz",16,17,"Fizz",19,"Buzz","Fizz",22,23,"Fizz","Buzz",26,"Fizz",28,29,"Fizzbuzz"]' to equal '[1,2,"Fizz",4,"Buzz","Fizz",7,8,"Fizz","Buzz",11,"Fizz",13,14,"FizzBuzz",16,17,"Fizz",19,"Buzz","Fizz",22,23,"Fizz","Buzz",26,"Fizz",28,29,"FizzBuzz"]'
Loading more items...