I havent understood this solution

Can you please write a code using this method and send me the link with explanation

@KetanPandey
Pseudocode is given in the video itself. Can’t you code it in C++ ?
Even if you didn’t understand the algorithm, writing C++ code from Pseudocode should be possible.

i can write the code but could not understand a bit. Please explain it.I have done everything from my side

hi @KetanPandey i am sharing a code with you that is using an output array to store the updated string. Please try to understand the logic from here, and then try to do this replacement inplace, ie in the original array itself. https://ide.codingblocks.com/s/268562 let me know if your doubt still persists.

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.