File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- Source: https://www.instagram.com/p/CG7kv65A6s1/?utm_source=ig_web_copy_link
3
- The following function accepts 2 positive integers
4
- and makes the first number as large as possible
5
- by swapping out its digits for digits in second number
6
- >>> maximum_combination(9132,5564)
7
- 9655
8
- >>> maximum_combination(523,76)
9
- 763
10
- >>> maximum_combination(8732, 91255)
11
- 9755
12
- >>> maximum_combination(6472,0)
13
- 6472
14
- >>> maximum_combination(-12,10)
15
- 0
2
+ Source: https://www.instagram.com/p/CG7kv65A6s1/?utm_source=ig_web_copy_link
3
+ The following function accepts 2 positive integers
4
+ and makes the first number as large as possible
5
+ by swapping out its digits for digits in second number
6
+ >>> maximum_combination(9132,5564)
7
+ 9655
8
+ >>> maximum_combination(523,76)
9
+ 763
10
+ >>> maximum_combination(8732, 91255)
11
+ 9755
12
+ >>> maximum_combination(6472,0)
13
+ 6472
14
+ >>> maximum_combination(-12,10)
15
+ 0
16
16
"""
17
17
18
18
You can’t perform that action at this time.
0 commit comments