← Questions

Count islands with diagonal connectivity

0
GoogleCodingLast asked Apr 2026

Count the islands in a grid of land and water where land cells are joined in all eight directions, diagonals included.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding