Go Solution
go\nfunc sortArrayByParity(A []int) []int {\n    start := 0\n    end := len(A) - 1\n    \n    for start < end {\n        // odd\n        if A[start] % 2 != 0 {\
```go\nfunc sortArrayByParity(A []int) []int {\n    start := 0\n    end := len(A) - 1\n    \n    for start < end {\n        // odd\n        if A[start] % 2 != 0 {\n            // swap with end\n            A[start], A[end] = A[end], A[start]\n            end--\n        } else {start++}            \n    }\n    \n    \n    return A\n}\n```
['Go']