https://programmers.co.kr/learn/courses/30/lessons/12917
def solution(s):
return ''.join(sorted(s, reverse=True))
def solution(s):
return ''.join(reversed(sorted(s)))
'알고리즘 > 프로그래머스' 카테고리의 다른 글
[프로그래머스] 2016 (python) (0) | 2021.05.26 |
---|---|
[프로그래머스] 제일 작은 수 제거하기(python) (0) | 2021.05.25 |
[프로그래머스] 나누어 떨어지는 숫자배열(python) (0) | 2021.05.20 |
[프로그래머스] 짝수와 홀수 (python) (0) | 2021.05.16 |
[프로그래머스] 수박수박수박수박수박수? (python) (0) | 2021.05.15 |
댓글