Runtime error in 3 of the two cases .
In this Question let’s assume a input
1 , 3, 2 , 4 , 6 , 7 , 8
Does Output needs to be in Some Sequence like
2, 4, 6 ,8, 1,3,7
or It can be in Jumbled Order like
8,6,2,4,7,1,3 ?
Runtime error in 3 of the two cases .
In this Question let’s assume a input
1 , 3, 2 , 4 , 6 , 7 , 8
Does Output needs to be in Some Sequence like
2, 4, 6 ,8, 1,3,7
or It can be in Jumbled Order like
8,6,2,4,7,1,3 ?
The numbers need to appear in the same order in which they appeared in the original list, not jumbled. And you have to place even numbers after odd, not the other way around