NeetCode #625LC-711HardGraphs
← Back to All Problems

#625 · #711 · Number of Distinct Islands II(不同岛屿的数量 II)

📌 Problem Statement & Constraints

You are given an m x n binary matrix grid. Two islands are considered the same if one can be translated, rotated by 90/180/270 degrees, or reflected to match the other. 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!