| 28 | |
| 29 | """ |
| 30 | class Solution(object): |
| 31 | def sortArrayByParity(self, A): |
| 32 | """ |
| 33 | :type A: List[int] |
| 34 | :rtype: List[int] |
| 35 | """ |
| 36 | even = [] |
| 37 | odd = [] |
| 38 | for i in A: |
| 39 | if i % 2 == 0: |
| 40 | even.append(i) |
| 41 | else: |
| 42 | odd.append(i) |
| 43 | |
| 44 | return even + odd |
| 45 | |
| 46 | |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected