#103. evenOdd
evenOdd
Background
Description
Return an array that contains the exact same numbers as the given array, but rearranged so that all the even numbers come before all the odd numbers. Other than that, the numbers can be in any order. You may modify and return the given array, or make a new array.
Format
Input
Output
Samples
[1 0 1 0 0 1 1]
[0, 0, 0, 1, 1, 1, 1]
[3 3 2]
[2, 3, 3]
[2 2 2]
[2, 2, 2]
Limitation
1s, 1024KiB for each test case.