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.
I reduced the upper limit of the tests in python, it's now fixed.
Hi,
Thanks for your answer, as it helps me to point where I misunderstood the instructions.
In my initial code, I was first sorting the player by winning number, taking the nth winning number, and in case of two players with the drawn winning number, then only I sorted them alphabetically and take the first one.
So:
But this is wrong. According to your answer, I've understood the correct order is:
I've update my program and now all tests are running fine. Thanks :-)
Hi,
I'm having the same issue as @jkapler.
On the same test, my code is returning
Elizabeth
as it has the same winning number asMatthew
, and rank 2 corresponds to their winning number. Sorting alphabetically the firstnames givesElizabeth
as ultimate winner.What did I understand wrongly in the instructions?
Thanks! Ya it's interesting to see the many ways it can be solved.
Also in python?
Trying it again gives still bad results:
I have updated the test cases.
I didn't realise that was possible on the test cases. I have altered now. Thanks for the feedback!
This comment is hidden because it contains spoiler information about the solution
Good kata. The great thing is that it can be solved with many different code, for simplest to smartest. Thanks.