Problems / Binary Search / Search a 2D Matrix
#29 Medium Time O(log(m·n)) Space O(1) Animated

Search a 2D Matrix

Efficiently search in an m x n matrix where rows and columns are sorted.

LeetCode ↗
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps