Sort array in at most one swap
Filed under Cvent
The question
Determine if an array can be sorted by performing at most one swap of two elements.
No write-up yet. Related questions below have one.
Related Cvent questions
Collected from public candidate posts and coding forums. Updated Nov 2026.