#3142
Check if Grid Satisfies Conditions
pupil · 475 · lc easy +27 · 45% accepted · 113 likes · top 28%
Description
Given an m x n matrix grid, return true if every cell is equal to the cell directly below it and different from the cell directly to its right (where those neighbors exist), false otherwise.
Code
1
2
3