Maintaining Relative Order while Sorting Odd and Even Numbers

Revision en1, by zzczzzzz, 2024-05-31 10:15:42
Given an array of integers, our goal is to rearrange its elements so that all odd numbers are on the left side and all even numbers are on the right side, while keeping the relative order of elements unchanged.
 How would you do?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English zzczzzzz 2024-05-31 10:15:42 300 Initial revision (published)