diff --git a/pr 5/coins.py b/pr 5/coins.py index 1e2c678..7297fc4 100644 --- a/pr 5/coins.py +++ b/pr 5/coins.py @@ -75,7 +75,7 @@ if __name__ == "__main__": print("--- Ohne Memoization ---") # Bei kleinen Werten läuft es noch schnell, bei höheren (ab ca. n=35) # bricht die Performance ein, weil sich die Rekursion totläuft. - coins(15) + coins(10) print("\n--- Mit Memoization ---") # Selbst große Beträge wie n=100 werden dank des Caches