Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- ๋ฐฑ์ค 1339๋ฒ js
- ๊ตฌ๋ฆํค
- ๋ฐฑ์ค 2108 ์๋ฐ์คํฌ๋ฆฝํธ
- js ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- js ๋ฌธ์์ด ์์ถ
- ์๋ฐ์คํฌ๋ฆฝํธ ๋ฌธ์์ด ์์ถ
- js
- next13 emotion
- ๋ฐฑ์ค 1339๋ฒ ์๋ฐ์คํฌ๋ฆฝํธ
- suspense ๋น๋๊ธฐ
- TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more:
- suspense ๋ณ๋ชฉํ์
- ๋ฐฑ์ค 2108 nodejs
- ์ฌ์ฉ์ฑ ๊ฐ์
- ์นด์นด์ค ์ฝํ
- app router emotion
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง
- suspense react-query
- ๋ฐฑ์ค 1339๋ฒ nodejs
- ์ต์ ๋์ฒด์ด๋
- ๋ฆฌ์กํธ์ฟผ๋ฆฌ suspense
- ํ๋ก๊ทธ๋๋จธ์ค ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- ํ๋ก๊ทธ๋๋จธ์ค ๋ฌธ์์ด ์์ถ
- emtion app router
- ์๋ฐ์คํฌ๋ฆฝํธ ์ค์ฝํ
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง ํ๊ณ
- ์ค์ฝํ
- suspense ๋์์๋ฆฌ
- js ์ค์ฝํ
- emotion RSC
Archives
- Today
- Total
Lennon FE
[ํ๋ก๊ทธ๋๋จธ์ค] ๊ฐ์ฅ ํฐ ์ (js) ๋ณธ๋ฌธ
728x90
๋ฐ์ํ
https://programmers.co.kr/learn/courses/30/lessons/42746?language=javascript#
function solution(numbers) {
numbers = numbers.map((v) => v+'');
numbers.sort((a,b) => a+b > b+a ? -1 : 1);
while(numbers[0] === "0"){
numbers.shift();
}
return numbers.length !== 0 ? numbers.join("") : '0';
}
์ด ์ ์ ์ ๋ ฅ๊ฐ์ด 0์ธ ํ ์คํธ์ผ์ด์ค๊ฐ ์์๋๋ฐ, ์ถ๊ฐ๊ฐ ๋ผ ํ์์ฒ๋ผ ํ๋ฉด ํ ์คํธ ์ผ์ด์ค 11๋ฒ์ด ๋งํ๋ค.
11๋ฒ์ ๋ฐ๋ก๋ ์ ๋ ฅ๊ฐ [0,0,0] ๊ฒฐ๊ณผ๊ฐ "0" ์ด๋ค.
728x90
๋ฐ์ํ
'๐ฅ Algorithm > Programmers' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค] ์ํด๋ฆฌ์ฑ๋ฆฐ์ง 12์ฃผ์ฐจ (js) (0) | 2021.10.26 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค] ๋ฒ ์คํธ์จ๋ฒ (js) (0) | 2021.10.26 |
[ํ๋ก๊ทธ๋๋จธ์ค] ๊ธฐ๋ฅ ๊ฐ๋ฐ (js) (0) | 2021.10.25 |
[ํ๋ก๊ทธ๋๋จธ์ค] ํฌ๋ ์ธ ์ธํ๋ฝ๊ธฐ (javascript) (0) | 2021.10.20 |
[ํ๋ก๊ทธ๋๋จธ์ค] 1์ฐจ ์บ์ (javaScript) (0) | 2021.10.07 |
Comments