Search a 2D Matrix II Flashcards

1
Q

Search a 2D Matrix II

  • Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
  • Integers in each row are sorted in ascending from left to right.
  • Integers in each column are sorted in ascending from top to bottom.
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly