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.
test case:
[
1, 0, 0, 0, 0,
1, 1, 0, 0, 0
],
[
1, 0, 1, 0, 0,
0, 0, 0, 1, 0
],
[
1, 0, 1, 0, 1,
1, 1, 0, 1, 0
],
[
1, 0, 0, 0, 0,
0, 0, 0, 0, 0
],
[
0, 0, 0, 0, 0,
0, 0, 0, 1, 0
],
[
0, 0, 0, 0, 1,
1, 1, 0, 0, 0
],
[
0, 0, 0, 1, 0,
0, 0, 0, 1, 0
],
[
0, 0, 0, 0, 0,
0, 0, 0, 0, 0
],
[
0, 0, 0, 0, 0,
0, 0, 1, 0, 0
],
[
0, 0, 0, 0, 0,
0, 0, 0, 0, 0
]
reason for fail: Must return false if ships are in contact
I can't see how is there a ship in contact with another ship here. What am I missing? Tis is the only scenario my code is failing.
It seems I have made a mistake. 1 Is not a prime number as I thought.
This comment is hidden because it contains spoiler information about the solution
I can't understand a single thing that is going on here
Sorry, I have missread the Kata.
It says in the example:
if j = 5:
..C.....m. returns 'Caught!' <-- not more than j characters between
So actually it is my fault. Sorry for posting it as an issue.
I think there's a problem in Ruby.
x= .....DC...m......
j = 3
it says: Expected: "Caught!", instead got: "Escaped!"
How can it expect Caught if the 'C' is 4 units away from 'm'? It won't reach the mouse, so my answer should be correct, all other atempt cases my solution passes.
I was finally able to solve the issue (not the best solution in the world but I'm just rank 6), but still, I feel the problem is under exaplained.
You have to spend too much time figuring out what they mean by cafe and decaf and not building a solution. I won't give hints here because I fell I am not supposed to, but I believe the person who created this Kata should explain what cafe and decaf means. Anyways, thanks for the help.
This comment is hidden because it contains spoiler information about the solution
Actually I haven't even written any code (I'm still trying to comment what I should do), can't figure out what they want, and still with you explanation it doesn't make sense to me. Maybe my English is just worse than I thought, but I can't make sense of what you are trying to say.
So, how do I know how many coffees am I drinking, and in which order? So I can present it in an array like this?
Does it mean the year of the birth belongs to cafe and month + day are the decaf value? And then you add cafe to the year and decaf to month + day until the word dead is met?
I have the same questions... I can't understand what they expect us to do.
Drink cups of coffee (i.e. add to h) until any part of the health number includes DEAD
What are the order of drinking? And the result, let's say [111, 0], means that the word DEAD appeared after 111 cups drank, and eah cup adds +1 to h? After you get the word dead, then you start drinking decaf?
I feel this Kata is very poorly explained
This is so much harder than it seemed to be when I started the Kata xS