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.
Sure, I see and I think i know where confusion comes from. When you try the task there is an extra paragraph saying:
I interpreted
and
there as a sum|x1 - x2| + |y1 - y2| <= 1
. So if one pixel hasx
andy
as coordinates, diagonal pixel would havex(+/-)1
andy(+/-)1
coordinates.Tests are broken, in JS
expects 2 while there are 3 islands
This comment is hidden because it contains spoiler information about the solution
Lol :)