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.
The random tests still print this instead of input:
Undocumented behavior:
I also end up with
[1, 3, 3, 3]
. I think this kata does not follow its own spec.I solve all sample tests but practically none of the random tests (Python). This means the sample tests are not a good representation of what to expect in random tests.
why the dogs[2] don´t move to the nearest food on 3?
in the description say:
HOWEVER, if the two dogs surrounding him are at the same distance away from him, then the dog will be confused and he'll stay in place, losing his turn to eat for that round.
perhaps that is the problem
Have you checked why the solution in the question below doesn't work?
solved, ty
.
Solved some problems in the python solution:
Python random tests have cases with one dog
In python function name should be snake_case (feed_the_dogs).
Python: the random tests print something else instead of the function arguments:
I fix all the issues long ago, but i can´t mark it as resolved. :(
I solve the issue in a fork, but don´t seems to be enough to mark it as resolved.
What i do bad?
Fixed!, Thanks
Why
feed_the_dogs([2, 5, 1, 3], [1, 2, 2, 0])
should be[1, 2, 3, 1]
(from random tests)?Python random tests have cases with one dog.
Python: the random tests print something else instead of the function arguments:
Loading more items...