Daily challenge for 2025-10-08
281. Sort Array By Parity
Given an integer array nums, move all the even integers to the beginning of the array followed by all the odd integers. Return the resulting array. Maintain the original relative order within the even group and within the odd group for deterministic results.
Example:Input: nums = [3,1,2,4]Output: [2,4,3,1]
Run this challenge interactively in Python or JavaScript when the app loads.