I have a string like this:
11,512,64,23,46,12,67,85,84
And I'm sure it's following these rules below:
- Only
,
and0123456789
in it. - No number will be bigger than 999, that means they are all 1,2 or 3 digits number.
Are there any simple algorithms that I can have to compress/decompress the data?
For instance, a very stupid way I can think is to convert each number into base-16 or even base base-36 numbers.