Jump to content

Run-length encoding: Difference between revisions

m
add category Encodings
m (add category Encodings)
Line 2:
 
{{task|Compression}}
 
[[Category: Encodings]]
 
Given a string containing uppercase characters (A-Z), compress repeated 'runs' of the same character by storing the length of that run, and provide a function to reverse the compression. The output can be anything, as long as you can recreate the input with it.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.