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.
Not a kata suggestion, 63 Codewarriors have passed this one
This comment is hidden because it contains spoiler information about the solution
Hi. If you want a really difficult 5kyu - check this https://www.codewars.com/kata/58db9545facc51e3db00000a I havent finished it yet. Its the same as this kata, but like ten times harder.
No going to lie, this took me a little over an hour. Kept getting stuck.
Good for you :)
I also stumbled over the 4 kyu, but especially because it is mentioned being easier than the kata "A Simple Music Encoder" - which is 5 kyu.
"A Simple Music Encoder": https://www.codewars.com/kata/58db9545facc51e3db00000a
I would like to suggest to add a specific test case. My first solution got accepted sometimes, and sometimes not, dependent on the randomised test cases. In case of a range, followed by a single final digit, it generated an error. So it with this (shortened) input
[..., -59, -58, -57, -54]
it generated this (shortened) output
'...,-59--54'
instead of the correct output:
'...,-59--57,-54'
I would suggest to include this test case, so it is always tested.
This comment is hidden because it contains spoiler information about the solution
But I am a human!
Sorry, I dont have insta, twitter or facebook =)
can i get ur insta? thx.
Because my algorithm is very poor.
You dont need to use .filter =)
Why so complecated?
dont listen to them, they just envy your one-liner solution
you can use Set.size instead of Array.length
Loading more items...