Skip to content

Commit 3fed46a

Browse files
authored
Update x만큼-간격이-있는-n개의-숫자.js
기존의 정답3 재원님의 코드는 다른문제의 해답입니다.(수박수박수박수박수박수.js)
1 parent 25ba838 commit 3fed46a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

level-1/x만큼-간격이-있는-n개의-숫자.js

+2-12
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,7 @@ function solution(x, n) {
2121
return answer;
2222
}
2323

24-
//정답 3 - jaewon1676
25-
function solution(n) {
26-
let str = '';
27-
for (let i=0; i<n; i++){
28-
// 삼항 연산자와 +로 문자열을 붙여주어 추가.
29-
(i % 2 == 0 ? str = str + '수' : str = str + '박')
30-
}
31-
return str;
32-
}
33-
34-
// 정답 4 - prove-ability
24+
// 정답 3 - prove-ability
3525
function solution(x, n) {
3626
var answer = [];
3727
let i = 1;
@@ -42,4 +32,4 @@ function solution(x, n) {
4232
i++;
4333
}
4434
return answer;
45-
}
35+
}

0 commit comments

Comments
 (0)