โ† Unthinkable Solutions questions

Sort array alternately largest and smallest

Filed under Unthinkable Solutions

The question

Sort an array such that the first element is the largest, second is the smallest, third is the second largest, fourth is the second smallest, and so on.

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

Related Unthinkable Solutions questions

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