Skip to content

Commit 8932b54

Browse files
Update maximum_combination.py
1 parent d9eb3ee commit 8932b54

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

maths/maximum_combination.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""
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
1616
"""
1717

1818

0 commit comments

Comments
 (0)