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.
Your code does not consider person with 0 votes (i.e, not in the first element of each rows combined). They have the least votes and should be removed first, followed by those who have the least votes amongst the voted candidates. (Also, your code is trying to retrieve first element from an empty row that has been removed(ex: [[], ["abc"], ["a", "b"]]), resulting in
IndexError
)hey can you help me ? did you find it whats wrong ?
The problem statement said not to mutate the nodes. This does that, if I'm thinking correctly...
But there's nothing missing :S It's the same keys as before!! I'm losing my mind trying this..
Something is missing from the Bomb
thanks :)
str
disabled; ) )
You must have ignored the keyword "least".
Back to the sample,the differences between 8 and 1 is greater than 5 and the distance between them is the longest.
So the answer is 2.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Try to avoid the error
This comment is hidden because it contains spoiler information about the solution
xixi