Back to QuestionsPractice with This Question
Search a 2D Matrix
46.4K views•Asked at IBM•
Medium
Question Explain
Write an efficient algorithm that searches for a value in an $m \times n$ matrix. The matrix has sorted rows and the first integer of each row is greater than the last of the previous row. Use two Binary Searches.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.