Ad
  • Custom User Avatar

    That's not the input of a single test, that's the input of several tests one after the other, add a new line after printing the input.

  • Custom User Avatar

    I have issues with this problem. Test cases fail on this array:
    {1,2,3,4,3,2,1,1,100,50,-51,1,1,1,2,3,4,5,6,20,10,30,10,10,15,35,8,8,8,0,0,8}
    My solution returned -1, but the test expected 1, which is impossible since there is no way that the numbers on the right side after first position will evaluate to left.

  • Custom User Avatar

    Sorry I forgot. Javascript. Thank you.

  • Default User Avatar

    About skipping position, it's not said directly, but you can see it in description example.
    About conterintuitive - most of rankings work like that, for example, check fifa (must find 2 teams with same points - for now is Sweden and Netherlands, position 14): https://www.fifa.com/fifa-world-ranking/ranking-table/men/.

  • Default User Avatar

    I do not get a ranking where we skip position number 3... not explained.. conterintuitive..

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Because your code doesn't return anything.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    I'm not familiar in python, but i belive that in sample test cases you can see what is input.

  • Custom User Avatar

    the input is actually like a json file, well in a pythonway to say this you can imagine it as a bunch of dictionaries within a list.

    people = [
    {"name":"John". "points":100},

    {"name"="Peter","points":120}
    ]

  • Custom User Avatar

    what is the actual input of this ? records like:
    name: "John",
    points: 100,

    or should it be typed in from command line. i completly dont know what input to put inside calling the function. Does the Python version matter?