Given an integer array nums, rearrange the elements such that all even integers appear before all odd integers.
Return any array that satisfies this condition.
Constraints:
nums.length
nums[i]
Given an integer array nums, rearrange the elements such that all even integers appear before all odd integers.
Return any array that satisfies this condition.
Constraints:
nums.length
nums[i]