We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please provide a brief description of the feature you would like to see implemented.
Add a Run-length encoding and decoding function to the strings module.
strings
Describe the use case for this feature. Why would it be beneficial to have this functionality?
Useful for lossless compression of strings with repeating characters, i.e. aaabbb -> 3a3b
func main() { encoded := strings.RunLengthEncode("aaabbbccc") fmt.Println(encoded) // Output: 3a3b3c }
func main() { decoded := strings.RunLengthDecode("3a3b3c") fmt.Println(decoded) // Output: aaabbbccc }
The text was updated successfully, but these errors were encountered:
Turtel216
Successfully merging a pull request may close this issue.
Feature Description
Please provide a brief description of the feature you would like to see implemented.
Add a Run-length encoding and decoding function to the
strings
module.Use Case
Describe the use case for this feature. Why would it be beneficial to have this functionality?
Useful for lossless compression of strings with repeating characters, i.e. aaabbb -> 3a3b
Pseudo Code
RunLengthEncode
RunLengthDecode
The text was updated successfully, but these errors were encountered: