Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yongxinz committed Jul 30, 2019
1 parent 36f81b1 commit 7ff2198
Show file tree
Hide file tree
Showing 23 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/array_slice_to_min_num.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: UTF-8 -*-

import operator

if __name__ == "__main__":
test = [3, 32, 321]

numbers = list(map(str, test))
numbers.sort(cmp=lambda x, y: operator.eq(x+y, y+x))
print(''.join(numbers))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7ff2198

Please sign in to comment.