Pairwise swap elements in an array
Filed under Publicis Sapient
The question
Swap elements in an array pairwise without using extra space.
No write-up yet. Related questions below have one.
Related Publicis Sapient questions
Collected from public candidate posts and coding forums. Updated Nov 2026.