Skip to content

Commit 24ee268

Browse files
committed
89차 3번 문제풀이
1 parent 90f0324 commit 24ee268

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

live8/test89/문제3/이상민.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function solution(numbers) {
2+
const strNum = numbers.map(String);
3+
if (strNum.every((str) => str === "0")) return "0";
4+
strNum.sort((a, b) => b + a - (a + b));
5+
return strNum.join("");
6+
}

0 commit comments

Comments
 (0)