NeetCode #608LC-694MediumGraphsNC Algo100
← Back to All Problems#608 · #694 · Number of Distinct Islands(不同岛屿的数量)
📌 Problem Statement & Constraints
You are given an
m x n binary matrix grid. An island is a group of 1s connected 4-directionally. Two islands are considered the same if they have the same shape, regardless of position or rotation. Return the number of distinct island shapes. Constraints: 1 <= m, n <= 50.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!