This repo is excluded from hacktoberfest , not make any kind of pulll request in this repo For contributing visit https://github.com/kuldeepsingh33/DSA-Hack
Added code "WaveSort" in Java/Sorting folder that sorts the array in wave form.
An array arr[0..n-1] is sorted in wave form if:
arr[0] >= arr[1] <= arr[2] >= arr[3] <= arr[4] >= …..
Added code "WaveSort" in Java/Sorting folder that sorts the array in wave form. An array arr[0..n-1] is sorted in wave form if: arr[0] >= arr[1] <= arr[2] >= arr[3] <= arr[4] >= …..