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.
Waowww! it is good solving ! :)
almost a good guy
and now?
ow,its good!
out of my league :(
I want dat bod! Voted clever for the -tail.length
This comment is hidden because it contains spoiler information about the solution
After reading some of the above posts, I added splice(0), but the tests are still failing. Now, every answer is still right, but now I'm getting "Expected: NaN, instead got..." What is the deal with these tests?
I also am seeing numbers interpretted in both directions in JavaScript in the final tests. The output prior to each test result, seems to me to be correct, and matches my answer, but doesn't match the expectation of the test.
Example:
Tests 0,0,1,1 ==> 3
Expected: 12, instead got: 3
cool!
I wish I knew what was going on here, cow b
What 牛B?一般的牛B ;-)
好好学习,真特么牛b
I swear reduce can do anything!
This is a common trend in codewars. The most upvoted solutions tend to be shortest rather than the most efficient.
Loading more items...