Now what else should I add to my code to return a string ?
Doubt in my code
Hello @yashsharma4304 as you are making the function type of string type then you should return string.
Also check your logic as you arr not adding the count of consecutive characters.
I donβt understand. Please can you tell me ?
If the input is aaabbccdds then your output should be a3b2c2d2s1
1 Like