We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90f0324 commit 24ee268Copy full SHA for 24ee268
1 file changed
live8/test89/문제3/이상민.js
@@ -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