▶ 要求给出一种对 URL 网址进行压缩和解压的算法,例如 https://leetcode.com/problems/design-tinyurl ←→ http://tinyurl.com/4e9iAk,在不允许打表的情况下应该无法压缩的. ● 代码,6 ms,完全不压缩,just for fun class Solution { public: // Encodes a URL to a shortened URL. string encode(string longUrl) { retu…