Sep-11-2018, 07:19 PM
Are you going to do this on numbers, or strings of digits?
The latter would be better.
One approach:
The latter would be better.
One approach:
- create a string of even digits, evens
- create a string of odd digits, odds
- iterate through the source list of strings, for each entry:
- build string of even digits in order found in entry i.e. digits found in evens string
- build string of odd digits in order found in entry i.e. digits found in odds string
- concatenate the two strings and add to list of output strings
- build string of even digits in order found in entry i.e. digits found in evens string
- output the list of output strings
I am trying to help you, really, even if it doesn't always seem that way