July 24, 2021
def solution(n): answer = sorted(list(map(int, list(str(n)))), reverse = True) answer = ''.join([str(x) for x in answer]) return int(answer)
def solution(n): ls = list(str(n)) ls.sort(reverse = True) return int("".join(ls))
GitHubVelogFacebook