Skip to content

Commit ae03803

Browse files
committed
Solved: 제일 작은 수 제거하기
1 parent fa8ae2f commit ae03803

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// 제일 작은 수 제거하기 :12935
2+
// https://school.programmers.co.kr/learn/courses/30/lessons/12935
3+
4+
function solution(arr) {
5+
arr.splice(arr.indexOf(Math.min(...arr)),1)
6+
return arr.length? arr: [-1];
7+
}

0 commit comments

Comments
 (0)