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.
Functional and lazy.
feel free to make a Supermarket Queue Part II Kata ;)
thanks. passed
Your code is printing the result instead of returning it.
sumOfDifferences([1, 2, 10] Log 9
Expected: 9, instead got: undefined
sumOfDifferences([-3, -2, -1]) Log 2
Expected: 2, instead got: undefined
Shouldn't be anyone with more than 5 items go to an regular checkout? 😂
Thanks
it's best to mention the language you're using, but this is clearly about javascript, so here you go: the js spread syntax
Somebody can explain me please this option I don't know what is ...arr) ? How does it work?
No problem.
I'm not an native english spreaker.
Now the description and the example is less ambiguous. Thanks!
Changed the example in the kata description. Is that good enough?
Normally that's called reversed, not sorted in descending order.
This comment is hidden because it contains spoiler information about the solution
The expected output for the sample tests and the final tests is in the same format.
The sample tests for JavaScript require the result being submitted as an HashMap, but the hidden tests require this quirky "(A : 600) - (B : 42)" format.
Please fix!
Loading more items...