21, to adjust the order of the array so that in front of the even-odd

1, Title Description: input an array of integers, to realize a function to adjust the order of the numbers in the array, such that all the odd part of the front half of the array, all even located in the second half of the array, and to ensure that odd and odd-even and constant relative position between an even number.

2, thinking:

Guess you like

Origin www.cnblogs.com/guoyu1/p/12072070.html