Plz check the code it failing the test case
Even after odd problem
@sudhanshu8917 Check the output format:
Sample Input
5
1 2 2 2 1
Sample Output
1 1 2 2 2
Your Output:
1->1->2->2->2->
Remove -> and then check.
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.