Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can you use the fact that the rows are sorted in non-decreasing order to solve the problem efficiently?
Try to binary search the answer.
Solve with full IDE support and test cases