A peak element in a
Given an mat where no two adjacent cells have equal values, find any peak element and return its coordinates as [i, j], representing the row and column indices.
You may assume that the entire matrix is surrounded by an outer border of cells containing the value
Constraints:
m mat.length
n mat[i].length
mat[i][j]
No two adjacent cells are equal.
A peak element in a
Given an mat where no two adjacent cells have equal values, find any peak element and return its coordinates as [i, j], representing the row and column indices.
You may assume that the entire matrix is surrounded by an outer border of cells containing the value
Constraints:
m mat.length
n mat[i].length
mat[i][j]
No two adjacent cells are equal.