Why 2tc failed with this approach?
💡-string-compression
garganshul151
(anshul garg)
September 2, 2020, 4:04pm
#1
Ankit003
(Ankit Kumar)
September 2, 2020, 4:10pm
#2
Consider the following case:
aabbaa answer should be a2b2a2 but your code is giving the answer a4b2