Run-Length String Compression
Implement run-length string compression. Scan a string s from left to right and group consecutive identical characters:
- If a character occurs once in its consecutive group, output the character ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
