JavaProgramming Odd numbers in odd index of array | Even numbers in even index of array Posted by Jothi Basu on October 23, 2017 with No comments This logic is written only for equal number of odd and even numbers Sample Output Enter array size: 6 Enter array elements: 1 2 3 4 5 6 After Shifting array elements : 2 1 4 3 6 5 Source Code Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest Related Posts: Bit flip - Find bit flip between two numbersFind the indices with anagram match Minimum number of hops to reach end of array or beyondFind if there are three elements in BST that sums up to zeroSubstring for given two chars
No comments:
Post a Comment