Problem 74 · Medium

Search a 2D Matrix

Treat the matrix as a flattened sorted array and binary search by mapping mid to (row, col).

Open the interactive visualisation