力扣今日题-535. TinyURL 的加密与解密

535. TinyURL 的加密与解密

难度:中等😕

这也能叫中等难度?

public class Codec {

    // Encodes a URL to a shortened URL.
    public String encode(String longUrl) {
        return longUrl;
    }

    // Decodes a shortened URL to its original URL.
    public String decode(String shortUrl) {
        return shortUrl;
    }
}

// Your Codec object will be instantiated and called as such:
// Codec codec = new Codec();
// codec.decode(codec.encode(url));
posted @ 2022-06-29 08:09  抗争的小青年  阅读(23)  评论(0编辑  收藏  举报