Jul-20-2017, 05:15 PM
My thoughts.
Once the odd numbers have been sorted.
Scan the original array, search for even numbers, once you have an even number, calculate its position and then insert it into the new array in that position.
Is this what you are looking for?
Bass
Once the odd numbers have been sorted.
Scan the original array, search for even numbers, once you have an even number, calculate its position and then insert it into the new array in that position.
Is this what you are looking for?
Bass
"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum