Skip to content

Commit 64620ce

Browse files
committed
update
1 parent d0d4642 commit 64620ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/largest-number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class Solution:
1414
def largestNumber(self, num):
1515
num = [str(x) for x in num]
1616
num.sort(cmp=lambda x, y: cmp(y + x, x + y))
17-
ret = ''.join(num)
18-
return ret.lstrip('0') or '0'
17+
largest = ''.join(num)
18+
return largest.lstrip('0') or '0'
1919

2020
if __name__ == "__main__":
2121
num = [3, 30, 34, 5, 9]

0 commit comments

Comments
 (0)