Rearrange an array in order - Smallest, Largest, 2nd Smallest, 2nd Largest and so on EASY
In this article, we will learn to reorder an array by placing the smallest number first, the largest number in second, the second smallest in third, the second-largest in fourth, etc.