We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71307c3 commit 24e7e83Copy full SHA for 24e7e83
encode-and-decode-strings/gitsunmin.ts
@@ -0,0 +1,14 @@
1
+/**
2
+ * https://www.lintcode.com/problem/659/
3
+ * time complexity : O(n)
4
+ * space complexity : O(n)
5
+ * ! emoji는 입력에서 제외한다.
6
+ */
7
+
8
+function encode(input: Array<string>): string {
9
+ return input.join("😀");
10
+}
11
12
+function decode(input: string): Array<string> {
13
+ return input.split("😀");
14
0 commit comments