This Repo is created by Abhishek for the beginners to promote open source programming (hacktoberfest), you just need to add any type of code in any programing lang you want, just commit your name at the end. Give a Star⭐
Traverse all even positioned elements of input array, and do following.
a) If current element is smaller than previous odd element, swap previous and current.
b) If current element is smaller than next odd element, swap next and current.
Optimised Code
Accepts User Input
Traverse all even positioned elements of input array, and do following.