File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 11import sys
22from doctest import testmod
3- < << << << HEAD
4- < << << << HEAD
5- == == == =
6- == == == =
7-
8- >> >> >> > d4d24a610a66bec4f2232a6c1e6460054c46463e
93"""
104Test cases:
115Do you want to enter your denominations ? (Y/N) :N
3529Do you want to enter your denominations ? (Y/N) :N
3630Enter the change you want to make: -98
3731The total value cannot be zero or negative.
32+
3833Do you want to enter your denominations ? (Y/N) :Y
3934Enter number of denomination:5
40351
4641Following is minimal change for 456 :
4742100 100 100 100 5 5 5 5 5 5 5 5 5 5 5 1
4843"""
49- < << << << HEAD
50- > >> >> >> 0 bbf0ea76e478706b1fa9ea377465c52f5195c6f
51- == == == =
52-
53-
54- >> >> >> > d4d24a610a66bec4f2232a6c1e6460054c46463e
5544def find_minimum_change (denominations : list [int ], value : int ) -> list [int ]:
5645 """
5746 Find the minimum change from the given denominations and value.
You can’t perform that action at this time.
0 commit comments