even odd numbers sort | Algorithms, Data Structures, and Programming
Given n random numbers. Move all even numbers on left hand side and odd numbers on right hand side and then sort the even numbers in increasing order and odd numbers in decreasing orderFor example, i/p : 3 6 9 2 4 10 34 21 5
o/p: 2 4 6 10 34 3 5 9 21
Read full article from even odd numbers sort | Algorithms, Data Structures, and Programming
No comments:
Post a Comment