Skip to content

Commit aa13153

Browse files
authored
Update minimum_coin_change.py
The correct version with input and output explanation
1 parent af72388 commit aa13153

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

greedy_methods/minimum_coin_change.py

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import sys
22
from doctest import testmod
3-
<<<<<<< HEAD
4-
<<<<<<< HEAD
5-
=======
6-
=======
7-
8-
>>>>>>> d4d24a610a66bec4f2232a6c1e6460054c46463e
93
"""
104
Test cases:
115
Do you want to enter your denominations ? (Y/N) :N
@@ -35,6 +29,7 @@
3529
Do you want to enter your denominations ? (Y/N) :N
3630
Enter the change you want to make: -98
3731
The total value cannot be zero or negative.
32+
3833
Do you want to enter your denominations ? (Y/N) :Y
3934
Enter number of denomination:5
4035
1
@@ -46,12 +41,6 @@
4641
Following is minimal change for 456 :
4742
100 100 100 100 5 5 5 5 5 5 5 5 5 5 5 1
4843
"""
49-
<<<<<<< HEAD
50-
>>>>>>> 0bbf0ea76e478706b1fa9ea377465c52f5195c6f
51-
=======
52-
53-
54-
>>>>>>> d4d24a610a66bec4f2232a6c1e6460054c46463e
5544
def find_minimum_change(denominations: list[int], value: int) -> list[int]:
5645
"""
5746
Find the minimum change from the given denominations and value.

0 commit comments

Comments
 (0)