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
Didn't like this solution readability-wise.
Ex : [5] is the only element in the array :
5 - (5 - 5)
Details: If array is empty, null or None, or if only 1 Element exists, return 0.
This solution will not retun 0 if only 1 element exists.
Ranking order doesnt seem to be verified - it just needs to be in "order", not in correct order :D
This is still a problem, in the actual tests, since both ordering the sales people by ASC and DESC both yields a correct result.
It should be stated that the largest amount of sales should have the lowest rank.
Why test "should return the sales counter" expects to receive a zero, but make people LEFT JOIN sales, records sales.id = zero not exists?