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 know that solution is super ugly =)
cheers =)
@docgunthrop the missleading thing is
Your function should return an array of integers. Each integer represents the turn for each shot fired from your ship's cannon.
and then you saying that we killing white alien (number 7) at turn 1, but example test cases telling me that we killing first allien at turn 0 as you can see below:
example_solutions = [[0,2,3,4,5,9,10,13,19,22]]
Description of this kata is missleading a little bit :)
I think I got it.
Thanks for explaination.
In kata description you sayin smth like this:
"The green alien (7) at [0,8] at turn 0 ends up at [1,4] (white alien) and gets shot down by your cannon at turn 1. Therefore, the time of registering your first shot is at turn 0"
So as you point out we are going to shot at turn 0 (killing alien with number -2) and then at turn 1 (killing white alien with number -7).
But your example solution for the first test case say something completely different, that we shot at turn 0 and then 2, 3....
example_solutions = [[0,2,3,4,5,9,10,13,19,22]]
Those test cases are wrong?
I got the same issue :/
Passed: 38 Failed: 1 Errors: 1