Problem 3467 · Easy

Transform Array by Parity

Replace each even value with 0 and each odd value with 1, then sort, so all zeros come before all ones.

Open the interactive visualisation