프로그래머스 - LV.0 - 배열 뒤집기

박종일·2023년 7월 12일
0

프로그래머스 LV.0

목록 보기
21/46


나의 풀이

def solution(num_list):
    num_list.reverse()
    return num_list

다른 풀이

def solution(num_list):
    return num_list[::-1]

역순 배열 슬라이싱 사용도 가능하다!

profile
존경하는 인물: 스토브리그 백승수 단장(남궁민)

0개의 댓글