plzzz…check the code…
Getting Wrong Answers
@Pramod123 Your code is failing for the case when we cannot even swap the values but you are still swapping. Check for cases like k==0 .
hi @Pramod123 have you tried out the changes suggested by my fellow TA? If yes then please share the updated code if it is not working
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.