|
About compression algorithms, such as 1111112436666445555
After compression is 61, -3243, 46, 24, 45,
If there are the same characters, the first character is the same number of characters,
If different characters are connected together, the first character is a negative number, and its absolute value is the number of different characters, followed by different characters.
Do you understand?
Help me think of a way! |
|