Solution: Number of Distinct Islands
Solution: Number of Distinct Islands asks you to inspect a binary grid, group connected land cells by horizontal or vertical adjacency, and count distinct island shapes without rotation or flipping.
We'll cover the following...
We'll cover the following...
Statement
Given an m x n binary matrix where