Search a 2D Matrix
Medium📝 Description
Search sorted matrix (rows sorted, first of row > last of previous)
Input Format
Matrix and target
Output Format
true/false
Constraints
m == matrix.length
🔍 Sample Input
[[1,3,5,7],[10,11,16,20],[23,30,34,60]]
3
✅ Sample Output
true
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run