728x90
반응형
문제출처: https://school.programmers.co.kr/learn/courses/30/lessons/12910
풀이:
def solution(arr, divisor):
return [ i for i in sorted(arr) if i % divisor == 0 ] or [-1]
반응형
문제출처: https://school.programmers.co.kr/learn/courses/30/lessons/12910
풀이:
def solution(arr, divisor):
return [ i for i in sorted(arr) if i % divisor == 0 ] or [-1]
댓글