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: Shuffle Merge two lists to form a new listRemove Duplicates from the listMinimum distance between charsSubstring Same sequenceCheck if the linked list of integers is Palindrome
No comments:
Post a Comment