Rearrange array such that even positioned are greater than odd

Problem Statement Suppose you have an integer array. The problem “Rearrange array such that even positioned are greater than odd” asks to rearrange the array such the elements at even position in an array should be greater than the element just before it. Arr[i-1] < = Arr[i], if position ā€˜iā€™ …

Read moreRearrange array such that even positioned are greater than odd