Python 1-liner
\nclass Solution:\n    def sortArrayByParity(self, A):\n        return [a for a in A if not a % 2] + [a for a in A if a % 2]\n
```\nclass Solution:\n    def sortArrayByParity(self, A):\n        return [a for a in A if not a % 2] + [a for a in A if a % 2]\n```
[]