Increment the count of del [ i ]
if ( mp . ContainsKey ( del [ i ] ) ) { mp [ del [ i ] ] ++ ; } else { mp [ del [ i ] ] = 1 ; } } List < int > heap = new List < int > ( ) ; for ( int i = 0 ; i < m ; ++ i ) {