# 对于[1,3,5]和[2,4,6]两种特殊情况,需要在移动双指针时注意是否越界。 import java.util.*; public class Solution { public int[] reOrderArrayTwo (int[] array) { int left = 0,right = array.length-1; while(left<right){ while(array[left]%2==1 && left<array.length-1){ ...