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.
I'm not mad btw, just asking. What is the point of submitting a minified solution?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Really hard puzzle, 5kyu is underestimation. Only 35 solutions since 2017.
arrow functions :)should have thought of that cool
that's very tidy!
Nicely done. Arrow fuctions are ideal for one-liners.🔥
nice solution
very nice solution!
Retired as per following discussion: https://github.com/codewars/content-issues/issues/158
This comment is hidden because it contains spoiler information about the solution
Voov Great!
I found the bag For code weirdReverse=a=>a.sort(_=>-1) i got error weirdReverse([1,2,3,4,5])
Should return [5,4,3,2,1]
Array must be reversed - Expected: '[5, 4, 3, 2, 1]', instead got: '[1, 2, 3, 4, 5]',
but my code RETURNS right variant in my IDE.
Hi. Ok, I found this one by chance, but I don't really understand how it works under the hood. Does this syntax define the first element as the maximum of the array with indices from
0
ton-1
, then the second element as the maximum of the subarray with indices from1
ton-1
, and so on up ton-1
? Could someone please explain/confirm it ?Loading more items...