Difference in Ascii Codes


Please,help me out.

@Gade_Deepthi
Actually you misunderstood the question. You don’t have to count frequency of each alpha but you have to compress the string. Consider this testcase
“aaabbacccbbbzz”
output of this string should be “a3b2a1c3b3z2” not “a4b5c3z2” as printed by your code.

@Gade_Deepthi
you got 100 points. I am marking this doubt as resolved.

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.