[프로그래머스] 제일 작은 수 제거하기(Python)

vvo_ter·2022년 10월 7일
0

프로그래머스

목록 보기
16/28
post-thumbnail

💻 문제 - Lv.1


👉 제출 코드

def solution(arr):
    arr.remove(min(arr))
    return arr if len(arr) != 0 else [-1]
  • remove 함수 사용
profile
's Coding Memory

0개의 댓글