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.
It was something like "Delete the nth occurence of an element"
I don't exactly remember.
Maybe the title of the kata should be changed to "Delete occurrences of an element if it occurs more than n times" or something like that
I got completely confused by it :D
It should work, but it doesn't for some reason.
No, I meant the test cases that appear in the "Your test cases" box on the bottom and run when you hit "Run Tests".
Here's some if you wanna put them.
Great and fun kata, keep it up.
just needs some test cases. :D
This comment is hidden because it contains spoiler information about the solution
Same issue happening to me (javascript version)
4 tests are failing out of 68 every time I submit
even though my solution doesn't round or truncate any numbers
e.g:
abs(actual - expected) must be <= 1e-2. Expected was -1.00e+0, but got 1.11e+2
abs(actual - expected) must be <= 1e-2. Expected was -1.00e+0, but got 5.74e+1
abs(actual - expected) must be <= 1e-2. Expected was -1.00e+0, but got 5.12e+1
Maybe you should mention that in the kata's description
it got me confused :D
Great kata.
Great and fun kata
well done.
Yes indeed it does
forgot to mention it :D
Maybe you should add test cases for Math.pow using negative exponents
because the original javascript's Math.pow accepts them
e.g:
some solutions don't work with negative exponents (just returns 1)
Just a suggestions though.
Awesome and fun kata
well done :D
Sorry for the late response
I thought the point of the kata was make the property names work as they are not change them.
I misunderstood :D
This comment is hidden because it contains spoiler information about the solution
Great kata for beginners in general
but you should write tests to check for the original property names
1stname, second-name, etc...
some solutions simply passed by changing property names
Loading more items...