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.
精彩评论