Skip to content

Commit 4bb6657

Browse files
committed
[level 1] Title: 제일 작은 수 제거하기, Time: 0.89 ms, Memory: 13.9 MB -BaekjoonHub
1 parent f4edbf1 commit 4bb6657

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

프로그래머스/1/12935. 제일 작은 수 제거하기/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 1] 제일 작은 수 제거하기 - 12935
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12935?language=java)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12935?language=python3)
44

55
### 성능 요약
66

7-
메모리: 94.9 MB, 시간: 1.72 ms
7+
메모리: 13.9 MB, 시간: 0.89 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2026년 06월 25일 21:37:20
19+
2026년 07월 15일 11:33:27
2020

2121
### 문제 설명
2222

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
def solution(arr):
2-
if len(arr) == 1: return [-1]
3-
arr.pop(arr.index(min(arr)))
4-
return arr
2+
del arr[arr.index(min(arr))]
3+
if arr:
4+
return arr
5+
return [-1]
6+

0 commit comments

Comments
 (0)