One test case not working
check for this input
8
1 2 3 4 6 8 5 10
ur o/p
1 3 5 10 8 6 4 2
but order of occurrence of elements should be same as in ques ie 10 should come at last
also try not to use list stl… try implementing by creating a linked list …refer to my code https://ide.codingblocks.com/s/595269
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.