Search⌘ K
AI Features

Number of Distinct Islands

Number of Distinct Islands asks you to count unique land shapes in a binary grid, where islands connect horizontally or vertically and shapes match only without rotation or flipping.

Statement

Given an m x n binary matrix where ...