Given an array with positive and negative integers, move all the odd indexed elements to the left and even indexed elements to the right.
The difficult part of the p
public class OddToLeftEvenToRight { private static void doIt(String input){ char[] inp = input.toCharArray(); int len = inp.length; for(int j=1; j< len; j++) { for(int i=j; i
This program does it in O(n^2).