Skip to content

Commit 7b1d9a0

Browse files
committed
Solve '정수 내림차순으로 배치하기' with python (New)
1 parent 4ce768d commit 7b1d9a0

File tree

1 file changed

+4
-0
lines changed
  • Level_1/정수 내림차순으로 배치하기

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def solution(n):
2+
n_list = list(str(n))
3+
n_list.sort(reverse=True)
4+
return int(''.join(n_list))

0 commit comments

Comments
 (0)