Skip to content

Commit bd504ff

Browse files
committed
solve: encode and decode strings
1 parent 6547750 commit bd504ff

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

decode-ways/tolluset.ts

Whitespace-only changes.

encode-and-decode-strings/tolluset.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function encode(arr: string[]): string {
2+
return arr.join("🎃");
3+
}
4+
5+
function decode(str: string): string[] {
6+
return str.split("🎃");
7+
}

0 commit comments

Comments
 (0)