Pleae help me to solving error in output
Hello @anshulgurawalia see in this question as you are comparing for all the same characters but we have compress only the continuous same characters so you have to built your logic like that:
suppose the input is:
aaabbccdsa
the output is:
a3b2c2d1s1a1
Here for your reference i am attaching the code:
if you have any doubt you can ask here:
Happy Learning!!
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.