Given an array of non-negative integers, design an encoder and decoder that compresses the sequence into a human-readable list of run descriptors and can restore it back to the original array, using two types of runs: Run-Length Encoding (RLE) and Bit-Packing (BP).
The encoder outputs a list of strings, each representing a run in one of the following formats:
- RLE Run:
Consecutive identical values are represented as
"RLE[value, count]", where:
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Stdout
-