Sep-11-2018, 09:36 AM
Hi,
I was asked to write the below program. Please let me know what is the best solution.
Input: [124678,1134546,9091102]
Output: [246817, 4461135, 2009911]
even digits should be in the beginning of the given element while odd digits should be placed at the end of the string.
How do you write this program?
Thanks
I was asked to write the below program. Please let me know what is the best solution.
Input: [124678,1134546,9091102]
Output: [246817, 4461135, 2009911]
even digits should be in the beginning of the given element while odd digits should be placed at the end of the string.
How do you write this program?
Thanks