Ezvor

2387. Median of a Row Wise Sorted Matrix

MediumArray Preparing judge… LeetCode
ArrayBinary SearchMatrix

Hints

Hint 1
How can you use the fact that the rows are sorted in non-decreasing order to solve the problem efficiently?
Hint 2
Try to binary search the answer.