Increment the count of del [ i ]
if dell [ i ] in mp . keys ( ) : NEW_LINE INDENT mp [ dell [ i ] ] += 1 NEW_LINE DEDENT else : NEW_LINE INDENT mp [ dell [ i ] ] = 1 NEW_LINE DEDENT heap = list ( ) NEW_LINE for i in range ( m ) : NEW_LINE