public int removeDuplicates_cheats(int[] A) {

		if (A.length == 0)
			return 0;

		int[] array = new int[A.length];
		array[0] = A[0];

		int idx = 1;
		int last = A[0];
		for (int i = 1; i < A.length; i++) {
			if (A[i] == last) {
				continue;
			} else {
				last = A[i];
				array[idx] = A[i];
				idx++;
			}
		}

		for(int i = 0; i < A.length; i++) {
			A[i] = array[i];
		}
		return idx++;
	}