Available question text
Map each element to its parity (even -> 0, odd -> 1) and return the array sorted non-decreasing. Equivalently, count evens and odds and output that many 0s followed by 1s.
Related questions
Continue with questions that share topics or the same question type.
- Apply Transform Over Each Element in Array
Coding
- Rank Transform of an Array
Coding
- Sort Array By Parity
Coding · Array · Sorting · Two Pointers
- Sort Array By Parity II
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3467. Transform Array by Parity
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source