in checked it so many times but i m not getting any error in execution two cases are correct but are showing wrong
code: https://ide.codingblocks.com/s/104200
What could be reason for wrong answer in two cases
hi ajay
check your code for the following input
5
5 4 3 2 1
5
9 8 7 6 5
expected output: 1, 5, 3, 0, 8, 6, END
your output: 5, 3, 0, 8, 6, END
1 Like