basic-text-compress

basic-text-compress

0 devlogs
0h 0m

You are working on a very basic text compression system to save space in data transmissions. This system uses the Run-Length Encoding (RLE) method, a lossless compression technique that consists of replacing consecutive sequences of identical characters with a single occurrence of the character followed by the number of consecutive repetitions.

Your goal is to implement two independent functions:

One that compresses text strings using this algorithm.

Another that decompresses strings previously compressed using this format.

Both functions must be robust enough to handle small, empty, or non-significantly compressed inputs.