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.
Once again, you're correct. :)
I've made the necessary corrections to the Kata!
There is this test case in
testStaticSquads
:After 55 rounds the scoreboard is as follows:
Team 15 (#14) can still overtake Team 12 (#12), so the race shouldn't end here. It should end next round (when the final runner of Team 12 finishes the race and gets
9
points).As you have suggested, I added some further examples showing some edge cases which better illustrate the full requirements.
You are correct, I'll make the appropriate update to account for the minimum remaining points a team can possibly score when determining a rank change.
Edit:
I have corrected the calculation and have also updated the examples to exercise the case you described.
The expected result in the kata is contradictory to what is specified. See the last example test:
After 5 players have finished:
As Team 1 will at least net 18 points while Team 2 can at most net 17 points, the result is curtains and there is no need to look further. Did the kata forgot to account for the minimum points that can be obtained by a leading team's remaining players?
I don't think the kata does a good job of illustrating the full requirement of the kata: the examples in the description only feature the trivial parts of the rules, and only the last fixed test sort of covers the simplest case of this.
Thanks, I've removed the JavaScript translation. It was an "inserted example" error on my part.
Javascript version needs to be updated to reflect the Java version, or unpublished entirely. The tasks are completely different.