Three testcase passes but but showing runtime error in testcase2.
This is the link of my code
Doubt in question Even-After-Odd
@anikcode
You have not covered the cases when all elements in the input list are odd or all are even. Your code gives error in both such cases.
Case when all are odd :
5
1 3 5 7 9
Case when all are even :
5
2 4 6 8 10
The expected output for both is the input list itself however your code gives runtime error for both the cases.
okay i got it.thank you