Stores the pair of arr [ i ] & min [ i ]
List < List < int > > A = new List < List < int > > ( ) ; for ( int i = 0 ; i < n ; i ++ ) { A . Add ( new List < int > ( ) ) ; A [ i ] . Add ( arr [ i ] ) ; A [ i ] . Add ( min [ i ] ) ; }