why the code is not correct
Hasing unlock test case error
@garima13j Consider the test case:
5 2
3 2 1 4 5
Expected Output:
5 4 1 2 3 ====> By first swapping 3 with 5 and then swapping 2 with 4.
Your Output:
5 4 3 2 1
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.