Sort Array By Parity
An Easy coding interview problem in the Two Pointers pattern.
Likely pattern
Walk inward or in lockstep over a sorted or symmetric sequence.
Recognition cue: The input is sorted (or can be), or you compare elements from both ends.
- Learn first
- Do not confuse it with
Topics
- Array
- Two Pointers
- Sorting
Practise Two Pointers next
- 1Easy
- 2Easy
- 3Easy
- 4Easy
- 5Easy
- 6Easy
- 7Easy
- 8Easy