Skip to content

String Compression #6

Description

@ChillBroYo

Implement a method to perform basic string compression on duplicate strings: aaaabbbbcccdddd => a4b4c3d4. However, if the compressed string would not be smaller than the original string, the function should return the original string. It can be assumed that the string in this case will only be composed of uppercase and lowercase letters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions