Problem is string compression . like aaabbcd so output will be a3b2c1d1 . what is the issue with my code that third test case fails ? my submission is #5383243
One test case failed
the ide is empty at this url
when the count of a number exceeds 9
then the code gives a wrong output
correct it for the case
when freq of element becomes greater than 9
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.