Leetcode 3467. Transform Array by Parity
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.