Count the distinct island shapes in a binary grid, where two islands count as the same if one can be rotated or reflected to match the other.
Loading content...