LeetCode905. 按奇偶排序数组

题目来源:

https://leetcode-cn.com/problems/sort-array-by-parity/

题目描述:

LeetCode905. 按奇偶排序数组_第1张图片

代码如下:

class Solution {
    public int[] sortArrayByParity(int[] A) {
    	if(A==null||A.length==0) {
    		return A;
    	}
        int i=0,j=A.length-1;
        while(i

 

你可能感兴趣的:(LeetCode,905.,按奇偶排序数组,LeetCode905.,按奇偶排序数组,LeetCode,按奇偶排序数组)