File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 1
1
import sys
2
2
from doctest import testmod
3
- < << << << HEAD
4
- < << << << HEAD
5
- == == == =
6
- == == == =
7
-
8
- >> >> >> > d4d24a610a66bec4f2232a6c1e6460054c46463e
9
3
"""
10
4
Test cases:
11
5
Do you want to enter your denominations ? (Y/N) :N
35
29
Do you want to enter your denominations ? (Y/N) :N
36
30
Enter the change you want to make: -98
37
31
The total value cannot be zero or negative.
32
+
38
33
Do you want to enter your denominations ? (Y/N) :Y
39
34
Enter number of denomination:5
40
35
1
46
41
Following is minimal change for 456 :
47
42
100 100 100 100 5 5 5 5 5 5 5 5 5 5 5 1
48
43
"""
49
- < << << << HEAD
50
- > >> >> >> 0 bbf0ea76e478706b1fa9ea377465c52f5195c6f
51
- == == == =
52
-
53
-
54
- >> >> >> > d4d24a610a66bec4f2232a6c1e6460054c46463e
55
44
def find_minimum_change (denominations : list [int ], value : int ) -> list [int ]:
56
45
"""
57
46
Find the minimum change from the given denominations and value.
You can’t perform that action at this time.
0 commit comments