Encode and Decode TinyURL LeetCode solution in Java

1
public class Codec {
2

3
// Encodes a URL to a shortened URL.
4
public String encode(String longUrl) {
5
return longUrl;
6
}
7

8
// Decodes a shortened URL to its original URL.
9
public String decode(String shortUrl) {
10
return shortUrl;
11
}
12
}

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0