Compress String | tech::interview
Implement a function to perform basic string compression using the counts of repeated characters.
For example, the string aabcccccaaa would become a2b1c5a3.
If the "compressed" string would not become smaller than the original string, you should return the original one.
Read full article from Compress String | tech::interview
No comments:
Post a Comment