Coding-ninjas icon indicating copy to clipboard operation
Coding-ninjas copied to clipboard

Arrange Numbers In Array

Open jgpulk opened this issue 3 years ago • 3 comments

For the below input : 1 11

orginal output required is : 1 3 5 7 9 11 10 8 6 4 2

But with your code , the output is incorrect !!! Your Output 1 3 5 7 9 0 10 8 6 4 2

NB : IF N IS EVEN NUMBER , the program o/p is correct. FOR ODD NUMBER, the output is incorrect.

jgpulk avatar Jun 29 '21 12:06 jgpulk