Can anyone please have a look and tell me why it got WA on submission?
Thank you
Your solution fails on the testcase:
1
ccabbcabab
1 Like
Thanks for the response. Should the answer here not be βYESβ ? Because the given string is of length 10 and the shortened will be : βa3b4c3β which is of length 6.
I think you may have misread the question: the shortened version of the string is not βa3b4c3β
2 Likes
Oh my god now i see it! This is what happens when you do things half asleep. Thanks for your responses
1 Like