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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
+1 don't mutate original array
This comment is hidden because it contains spoiler information about the solution
Showcasing the readability of Ruby...
oh mb i misread that and thought we had to return a list of non-negative ints.
There wouldn't be any provided.
The kata description is "create a function that takes a list of non-negative integers"
wouldnt this still leave the negative ints?
This comment is hidden because it contains spoiler information about the solution
Fixed
took lower time for me when i defined a new list and then returned it, anyone know why?
No because the problem set requires you to buy exactly 2 items. since there is no 0 cost item 5 has no valid pairing.
This comment is hidden because it contains spoiler information about the solution
No reason. They are the same.
This comment is hidden because it contains spoiler information about the solution
Loading more items...