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.
The sorting of score and name should happen concurrently and not sequentially. Currently, you are sorting scores by descending order, then names by lexicographically in ascending order
'looks like you solved it'
I have also got confused by the message "It should work for random inputs too" at the end of the random tests.
So I have updated the message as
"league_table is not updated as expected"
for the test case.With the update, I also made the kata solvable for python3, too.
FYI - The best place for help with a specific problem might be here: https://gitter.im/Codewars/codewars.com/kata-solving-help
DM
You seem to be asking two different questions here. Can you try again to express your questions more clearly?
I might be missing something here (and note that you can format your code between ticks to make it easier for others to read) but why are you taking in 2 arguments?
It seems you are returning the value as a string and it should be a number.
Ok, I knew you didn't use set operations, so what do you need to do is actually look here: https://en.wikibooks.org/wiki/Python_Programming/Sets look up to (Memebership testing) :). And yes list comprehesions can be slow if the array/list is big. Set operations are faster and use less space since the are not hashed (you can't index them). Try to change all this "list" objects into set operations Union etc...
I hope I helped. For example the first part of the answer would be... set(arr1) & set(arr2) or... you will find out by yourself ;)
Show me your code if it is python but mark it as spoiler :)
Your function is too slow. :)
Have you figured out your problem? Because your solution works.
Take a look at this and see if it helps. If not feel free to follow up with me.