将数字压缩为Base64的算法
原文英文,约400词,阅读约需2分钟。发表于: 。I came up with an algorithm to compress numbers into Base64, so I'd like to introduce it. The compression rate is about 55%. Because the leading zeros disappear, I hope you will use it for numbers...
我提出了一种将数字压缩为Base64的算法,压缩率约为55%,适用于不以零开头的长数字。示例代码展示了如何压缩和解压缩数字,压缩后10,000位数字可缩减至5,537字符。期待更快或更高压缩率的算法分享。