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.
Needs edge case
[1, 1, 2, 2, 4]
. This should expect2
(kill 2 wolves with melee and shoot the farther wolf once, for 2 turns), but every solution, including author solution, expects3
.Well, except one solution, but this solution has incorrect handling, and fails at
[2, 2]
.The fixed tests are too weak: there are at least several solutions with incorrect checking and still passes. There is one hard-coding solution, and one solution that fails at
[2, 2]
.Random tests almost always has an expected value of
max(distances) - 3
.