Search
⌘K
Get Premium
Leetcode 711. Number of Distinct Islands II
Count the number of distinct island shapes in a binary grid where two islands are considered identical if one can be translated, rotated (90/180/270°) or reflected to match the other. Extract each island’s coordinates and compare canonicalized shape signatures (normalized across all rotations/reflections) to identify unique shapes.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.