DIY: Search a 2D Matrix II

Solve the interview question "Search a 2D Matrix II" in this lesson.

Problem statement

Write an algorithm that searches for a target value in an m x n integer matrix.

The matrix has the following properties:

  • Integers in each row are sorted in ascending ...