We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa8ae2f commit ae03803Copy full SHA for ae03803
programmers/level1/제일 작은 수 제거하기.js
@@ -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