I followed the hint video to solve this and i implemented the code. The output seems fine but some test cases show wrong answer
Could you check what's wrong with my code
Hi Adarsh,
ur code is failing on this test case
4
1 2 3 4
4
expected o/p --> 1 2 3 4
ur o/p --> 2 3 4 1
u can refer my code https://ide.codingblocks.com/s/626971
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.