Lucky Numbers in Matrix
Easy
Arrays
Array
Matrix
Find elements that are minimum in row and maximum in column.
Constraints
m,n ≤ 50
Examples
Example 1:
Input: 3 7 8
9 11 13
15 16 17
Output: 15
Example 2:
Input: 1 10 4 2
9 3 8 7
15 16 17 12
Output: 12
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console