You are viewing a single comment's thread. Return to all comments →
But how about -101 is the max value in the list?
No. I made the max value in the list the min value by updating it to -101(see the constraints). So the 2nd max value automatically becomes the max value