开发者

What is the shortest URL that can store the order of 78 items?

开发者 https://www.devze.com 2023-03-28 02:57 出处:网络
I\'m trying to figure out how to have the shortest URL possible that stores the order of 78 cards. The best I could do was using 78 different characters, each representing a different card.

I'm trying to figure out how to have the shortest URL possible that stores the order of 78 cards. The best I could do was using 78 different characters, each representing a different card.

Is there a formula that could do a better job for开发者_如何学Go me?

Cheers,


You might try a compression format? It essentially will find patterns in your char data and group them.

For example: say your 78 char format has a 8273400000234270000 then you might see 827340r5234270r4 instead. It gets a lot more complex than that and I'm willing to bet there's much smoother/better solutions on the web. Here's a google search for String Compression.

0

精彩评论

暂无评论...
验证码 换一张
取 消