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.
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.
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.
Sorry I forgot. Javascript. Thank you.
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/.
I do not get a ranking where we skip position number 3... not explained.. conterintuitive..
This comment is hidden because it contains spoiler information about the solution
Because your code doesn't return anything.
This comment is hidden because it contains spoiler information about the solution
I'm not familiar in python, but i belive that in sample test cases you can see what is input.
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}
]
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?