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.
Chrono78 is right. Don't mutate the input and your code passes all tests.
I meant all tests: basic and attempt.
You're mutating the input array, that's causing that error.
That's weird, tests are ok, I've just tried them out now. Check you have Node v8.1.3 selected in the trainer (just on the right of the box to choose the language)? If it's ok post your entier code with a spoiler flag.
Your code not working is not a kata issue. Seems you don't use split properly.
He is not only the best but also an artist :)
yep, but every, even such a tiny observation require a little bit of willpower. Take a look at my solution it's most ridiculous one I believe^^
Read the instructions again, you have to return an array with
n
smallest numbers removed, not all numbers smaller thann
.If there is no special requirement, generally speaking,
round
usually means something like Math.round() or toFixed()He's not actually counting it, it's just there to show you where it's starting in the example. If you look at the counts in the example, they are one letter less than the number of letters plus OK.
@Maxitenia : Congrats
This comment is hidden because it contains spoiler information about the solution
It's cool that you're steadily cheating your way to the top of the leaderboard, but it doesn't mean that you can simply tell other people how to solve the kata (moreover, it seems you don't even know what you're talking about).
This comment is hidden because it contains spoiler information about the solution
Because there's no
**
in code. To prevent this kind of cheat, not only**
should be banned but also all the functions which can evaluate strings.Loading more items...