https://ide.codingblocks.com/#/s/28151
not able to pass two test cases which one are that ?
https://hack.codingblocks.com/contests/c/509/1371
String-string compression
I am not understanding your code but problem is that your code is applying compression on single frequency characters as well. As in the sample input aaabbccds changes to a3b2c2ds, and your code produces a3b2c2d1s1. Try correcting this mistake.
1 Like