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.
But wait, they have the same winning number (485) and alphabetically, E comes before M?
Thanks for your post, I see it as an encouragement!
I was stuck on this exact test case with the same results.
If anyone else reads this and thinks "this guy is right - there's an issue," just go back and read the instructions carefully! There's a small detail you probably overlooked.
What does that mean?:-)
a
Your answer to: rank("Elijah,Chloe,Elizabeth,Matthew,Natalie,Jayden", [1, 3, 5, 5, 3, 6], 2) is false. You should have somethink like that: [["Elizabeth", 485], ["Matthew", 485], [".... The tests are correct. THe fixed tests are the same in all languages and 200 guys passed them.
Yo I think one of the test case is wrong (Ruby)
Below are the results I got after submit (run tests step was ok)
Shouldn't it be rank 2 Elizabeth? How the hell it is expected to be Matthew? I printed both n and the array values out to check.
4
[["Addison", 264], ["Michael", 204], ["Andrew", 195], ["Benjamin", 136], ["Jayden", 118], ["Lily", 58], ["Sofia", 50]]
✔ Test Passed: Value == "Benjamin"
2
[["Matthew", 450], ["Elizabeth", 440], ["Jayden", 354], ["Natalie", 186], ["Chloe", 129], ["Elijah", 45]]
✘ Expected: "Matthew", instead got: "Elizabeth"