Ad
  • Custom User Avatar

    But wait, they have the same winning number (485) and alphabetically, E comes before M?

  • Default User Avatar

    Thanks for your post, I see it as an encouragement!

  • Custom User Avatar

    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.

  • Default User Avatar

    What does that mean?:-)

  • Default User Avatar
  • Default User Avatar

    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.

  • Custom User Avatar

    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"