You are given an grid and an integer k.
An island is formed by connected cells with values strictly greater than
The total value of an island is the sum of all cell values belonging to that island.
Return the total number of islands whose total value is divisible by k.
Constraints:
m grid.length
n grid[i].length
m, n
m * n
grid[i][j]
k
You are given an grid and an integer k.
An island is formed by connected cells with values strictly greater than
The total value of an island is the sum of all cell values belonging to that island.
Return the total number of islands whose total value is divisible by k.
Constraints:
m grid.length
n grid[i].length
m, n
m * n
grid[i][j]
k