标签:ted world imp art sim run ensure rsa store
Note: For the coding companion problem, please see: Encode and Decode TinyURL.
How would you design a URL shortening service that is similar to TinyURL?
Background:
TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl
and it returns a short URL such as http://tinyurl.com/4e9iAk
.
Requirements:
"https://leetcode.com/problems/design-tinyurl"
. The identifier (the highlighted part) can be any string with 6 alphanumeric characters containing 0-9
, a-z
, A-Z
.
Note about Questions:
Below are just a small subset of questions to get you started. In real world, there could be many follow ups and questions possible and the discussion is open-ended (No one true or correct way to solve a problem). If you have more ideas or questions, please ask in Discuss and we may compile it here!
Questions:
s
[LeetCode] Design TinyURL 设计精简URL地址
标签:ted world imp art sim run ensure rsa store
原文地址:http://www.cnblogs.com/grandyang/p/7675140.html