905. Sort Array By Parity
905. Sort Array By Parity
1 | Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. |
Difficulty : Easy
Solution
two pointers
1 | class Solution { |
1 | Given an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. |
Difficulty : Easy
two pointers
1 | class Solution { |