Test some more versions
This commit is contained in:
parent
de4fe423fb
commit
1ec43adeee
|
|
@ -102,11 +102,11 @@
|
||||||
(cc amount (- kind-of-coins 1) name)
|
(cc amount (- kind-of-coins 1) name)
|
||||||
(cc (- amount (first-denomination kind-of-coins)) kind-of-coins name))))
|
(cc (- amount (first-denomination kind-of-coins)) kind-of-coins name))))
|
||||||
|
|
||||||
(def result (cc amount denom "test"))
|
(def result (cc amount denom "start"))
|
||||||
(dot/write graph "exercise_1_14.gv")
|
(dot/write graph "exercise_1_14.gv")
|
||||||
result)
|
result)
|
||||||
|
|
||||||
(print (count-change2 11 2))
|
(print (count-change2 51 5))
|
||||||
|
|
||||||
# Using the graph we can find the following relation for (cc n 1)
|
# Using the graph we can find the following relation for (cc n 1)
|
||||||
# f(0,1) = 1
|
# f(0,1) = 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user