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.
If there are duplicate entries you should just keep the one with the highest score.
Return as much results as possible, in the test case just 1.
"Should equal" is the result you are expected to give. You need to sort them alphabetically also, that's why Frank is before Frodo.
Works properly now for me too. Good job fixing it.
Random test are not working is JS, as it doesn't sort them alphabetically properly. Here's a test I failed
Expected: [['Jeremy', 102], ['Josephine', 102], ['Jill', 102], ['Jared', 102], ['Jackson', 102], ['John', 102], ['Joe', 101], ['Joel', 100], ['Jude', 100]], instead got: [['Jackson', 102], ['Jared', 102], ['Jeremy', 102], ['Jill', 102], ['John', 102], ['Josephine', 102], ['Joe', 101], ['Joel', 100], ['Jude', 100]]
Ah I feel like an idiot now. Sorry for the fuss up.
Getting this kata finally was very enjoyable.
Also isPalindrome is faster as a string. Will need to look up why.
This comment is hidden because it contains spoiler information about the solution