본문 바로가기
알고리즘/프로그래머스

[프로그래머스] 문자열 내림차순으로 배치하기 (python)

by 김홍중 2021. 5. 22.

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)))

댓글