Write an efficient search for a target in a row-and-column sorted matrix.
Constraints
Example
```python >>> search_matrix([[1,4,7], [2,5,8], [3,6,9]], 5) True >>> search_matrix([[1,4,7], [2,5,8], [3,6,9]], 10) False >>> search_matrix([], 1) False >>> search_matrix([[]], 1) False ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints