如何创建URL缩短器?
http://www.example.org/abcdef
".
abcdef
a-z, A-Z and 0-9
id
short
http://www.google.de/
239472
short = ''; if divisible by 2, add "a"+the result to short if divisible by 3, add "b"+the result to short ... until I have divisors for a-z and A-Z.
由于对这个话题的兴趣,我 发布了一种高效的GitHub解决方案 的实现 JavaScript ,PHP ,Python 和 爪哇 ..如果您愿意,可以添加您的解决方案:)