Loading problem…
You are searching a sorted grid where each row is sorted left to right, and the first value of each row is greater than the last value of the previous row.
Given an m x n matrix and a target, return true if the target exists in the matrix. Otherwise, return false.