You are given an m by n grid of cells, where some cells are colored black. The black cells are specified by coordinates, where each coordinates[i] = [r, c] marks the cell at row r and column c as black.
Consider every
Return an array ans of length ans[k] is the number of
Constraints:
m
n
coordinates.length
coordinates[i].length
coordinates[i][0] m
coordinates[i][1] n
It is guaranteed that all entries in coordinates are pairwise distinct.
You are given an m by n grid of cells, where some cells are colored black. The black cells are specified by coordinates, where each coordinates[i] = [r, c] marks the cell at row r and column c as black.
Consider every
Return an array ans of length ans[k] is the number of
Constraints:
m
n
coordinates.length
coordinates[i].length
coordinates[i][0] m
coordinates[i][1] n
It is guaranteed that all entries in coordinates are pairwise distinct.