Why this code is not working (move all x to end)
I have corrected ur code. it works fine now
can u tell me what was wrong in my code?
u have not created any starting variable only. the how do u keep track when u have to shift from left to right. thats why i have passed variable i
that doesn’t matter as I was updating the string in every recursive call and my pointer will always be pointing to the starting of the updated string…this was not the problem and I am totally sure of it.
ok let me once debug ur code
corrected and compiled again but still not working
what error are u getting
in line 20 also u would have to do s+1 as for this ith postion u have done work and now calling for next position
working now…thanks a lot!!
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.