Encode/compress sequence of repeating integers

后端 未结 6 1433
后悔当初
后悔当初 2020-12-11 04:02

I have very long integer sequences that look like this (arbitrary length!):

0000000001110002220033333

Now I need some algorithm to convert

6条回答
  •  旧时难觅i
    2020-12-11 04:12

    Just FYI, you could probably gzip your data and the browse will automatically unzip it. For most implementations this is going to work better than RLE. But less fun obviously.

提交回复
热议问题