โ† Infoedge questions

Swap maximum and second lowest elements in array

Filed under Infoedge

The question

Swap the maximum value and the second lowest value in an integer array while keeping all other element positions unchanged.

No write-up yet. Related questions below have one.

Related Infoedge questions

Collected from public candidate posts and coding forums. Updated Nov 2026.