pygorithm/test/test_dynamic_programming.py

12 lines
239 B
Python
Raw Normal View History

2023-12-04 12:48:44 +08:00
from dynamic_programming.dynamic_programming import *
def test_dp_rec_mc1():
cash = 49
changes = [1, 5, 10, 20, 50]
assert 7 == dp_rec_mc1(changes, cash)
def test_dp_rec_mc2():
cash = 49
changes = [1, 5, 10, 20, 50]