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.
Ineffecient code = slow execution time
I've fixed the issue by renaming the argument to 'arg1'
I'm not sure what you're asking, but if you're asking if you have to declare your own method to sort and grab the two highest values in an array/list, then yes. If you're asking if you have to write multiple methods to do this, the answer is both yes and no, you don't have to write your own methods but if it is what you prefer you can.
This method doesn't work, I suggest sorting the given list and removing duplicates first.
I'll check it out.
EDIT: Thank you, I've added a test case within the kata that checks for duplicates.
When supplying an array with negative values -- only the randomly generated negative values, it seems to error; For example: it will pass the array [1, 27, 43, 991, -237, -900] and my function will grab -900 and -237 and create -1137. At this point, the test will error that it's expecting a different number to be outputted that's completely not related to any of the numbers?
ps. I'm using python