Skip to content

Commit 8112c05

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ec2723f commit 8112c05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

greedy_methods/minimum_coin_change.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import sys
22
from doctest import testmod
3+
4+
35
def find_minimum_change(denominations: list[int], value: int) -> list[int]:
46
"""
57
Find the minimum change from the given denominations and value.
@@ -30,6 +32,8 @@ def find_minimum_change(denominations: list[int], value: int) -> list[int]:
3032
value -= denomination
3133
answer.append(denomination)
3234
return answer
35+
36+
3337
# Driver Code
3438
if __name__ == "__main__":
3539
# Run doctest

0 commit comments

Comments
 (0)