ok, tricky thing, but it's actually correct, as long as one doesn't forget that the elements are the islands, and not the bridges. with a "and", you should have guards everywhere, so.

I think theres an issue : if the array is the corner case {false}, the expected answer is zero instead of one. It'd be very misleading if it was the intended result, as there are no guards at all. It should at least be mentionned in the description.
And thanks for the nice kata :)

lacks clear error messages

Fixed

C version generates warnings.

You're right. I already updated the kata. Thanks for the feedback ;)

Hey, I know other langages, Python is just so relaxing it's a hobby. ^^

I don't understand!

expected:<1> but was:<0>

expected 1 not 0!!!

In 5 islands not have guards.

Islands that are next to all the guards!

@B4B: Did you even look? x) Mercy's only language is Python, and True and False are capitalized...

you're reading the wrong input (since the ref solution expects 0 and not 1, here).

ok, tricky thing, but it's actually correct, as long as one doesn't forget that the elements are the islands, and not the bridges. with a "and", you should have guards everywhere, so.

=> closing

Python

language...?

Java

true true true true true true true true true true true true true true true true true true true true true false true true true true true true true true true true true false true true true true true true false true true false true true true true true false true true false true true true true true true true true true true true true true true true true true

expected:<1> but was:<0>

Why do you need 1 guard? Where there is no protection on the island, there is a nearby island with security

"A bridge between islands k[i] and k[i+1] is safe when there is an elite guard in island k[i] or k[i+1]."

[True, False, False, True] will expect 1, so I think it's "k[i] and k[i+1]".

python solution: Changed

`array`

for`sequence`

in the descriptionhttps://www.codewars.com/kumite/5e8b68e9c2eb9f0029a98f45?sel=5e8b68e9c2eb9f0029a98f45

I think theres an issue : if the array is the corner case {false}, the expected answer is zero instead of one. It'd be very misleading if it was the intended result, as there are no guards at all. It should at least be mentionned in the description.

And thanks for the nice kata :)

## Loading more items...