We are given an array of random number and we need to rearrange the array such that elements at even position are greater than elements at odd position of the array. This is also called as sorting array in wave form (higher-lower-higher-lower-so on...)
Problem Links:
1. https://www.geeksforgeeks.org/rearran...
2. https://www.geeksforgeeks.org/sort-ar...
#array #rearrange #sort #gfg #codesplaining