โ† MAQ Software questions

Print odd numbers first then even numbers from an array

Filed under MAQ Software

Given an array of integers `nums`, rearrange the array in-place so that all odd numbers appear before all even numbers. The relative order among odd or even elements does not need to be preserved.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MAQ Software questions

Collected from public candidate posts and coding forums. Updated Nov 2026.