Solution: Number of Distinct Islands
Solution: Number of Distinct Islands gives a binary grid of land and water. Return how many islands connected horizontally or vertically have unique shapes. Rotations and flips count as different.
We'll cover the following...
We'll cover the following...
Statement
Given an m x n binary matrix where