Insert new interval
pq . Add ( new Tuple < int , int > ( interval . Item1 + 1 , interval . Item2 ) ) ; } cnt += 1 ; } pq . Sort ( ) ; pq . Reverse ( ) ; return ( ( Tuple < int , int > ) pq [ 0 ] ) . Item1 + 1 ; }