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
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.