please provide the solution and code solution for the given question
Tried very hard but did not understand
here i am using 2 pointer approach where in I iterate using i and increase j when it is non ‘x’ character else if the char is ‘x’ i increase count_ x,
then in the end i put count_x in the array after the jth position
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.
It seems that your code works well now.
Great to know that u finally could do it.
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.