[Help] Yesterday's Infytq Advantage round problem

Revision en1, by nikcf01, 2022-03-06 05:30:56

Problem

The mini-max of a grid is found by taking the maximum element in each column to create a list L. The minimum element in L is called the Mini-max . You will be given an integer grid A of size n*m . you need to choose m-1 rows to form a new grid of size (m-1)*m . Find the maximum possible Mini-max value for the new grid.

constraints

 1 <= n <= 1000 
 1 <= m <= 1000
 1 <= A[i][j] <= 10^9

Sample test case

4 3 
1 3 1 
3 1 1
1 2 2
1 1 3

Answer :

2

Explanation

We can choose the second and third rows.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nikcf01 2022-03-06 05:30:56 749 Initial revision (published)