Skip to content

Commit f66508d

Browse files
authored
Merge pull request #412 from planet-devo-k/sujin
`week47` 문제 풀었습니다
2 parents 2e2a5c6 + d9e0382 commit f66508d

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function solution(str_list, ex) {
2+
return str_list.filter((item) => !item.includes(ex)).join("");
3+
}

sujin/level0/88. 0 떼기.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
function solution(n_str) {
2+
for (let i of n_str) {
3+
if (i !== "0") {
4+
const idxNum = n_str.indexOf(i);
5+
return n_str.slice(idxNum);
6+
}
7+
}
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function solution(arr) {
2+
return arr.length !== 1 ? arr.filter((item) => item !== Math.min(...arr)) : [-1];
3+
}

0 commit comments

Comments
 (0)