以下代码的功能是将数组中的奇数和偶数分别放在数组的前半部分和后半部分,横线处应该填入的是()
while (arr[left] % 2 == 0 && left < right) right--;
while (arr[right] % 2 == 0 && left < right) left--;
while (arr[right] % 2 != 0 && left < right) right--;
while (arr[right] % 2 == 0 && left < right) right--;