1. 문제
https://programmers.co.kr/learn/courses/30/lessons/12933
2. 풀이
def solution(n):
return int(''.join(sorted([x for x in str(n)], reverse=True)))
https://programmers.co.kr/learn/courses/30/lessons/12933
def solution(n):
return int(''.join(sorted([x for x in str(n)], reverse=True)))