- Devide the x and y by their greatest common divider, such that x and y can be reduced to minimum value - All other x and y can be reduced to such condition as well - track the final reduced (x,y) in ...
You are given an `m x n` binary matrix `grid`. An island is a group of `1`'s (representing land) connected **4-directionally** (horizontal or vertical.) You may assume all four edges of the grid are ...