Skip to content

Commit 624a79d

Browse files
committed
Fix
1 parent c73c93e commit 624a79d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dynamic_programming/matrix_chain_multiplication.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def matrix_chain_multiply(arr: list[int]) -> int:
7474
>>> matrix_chain_multiply(list(range(1, 100)))
7575
323398
7676
>>> matrix_chain_multiply(list(range(1, 251)))
77-
2626798
77+
5208248
7878
"""
7979
if len(arr) < 2:
8080
return 0
@@ -114,7 +114,7 @@ def matrix_chain_order(dims: list[int]) -> int:
114114
>>> matrix_chain_order(list(range(1, 100)))
115115
323398
116116
>>> matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
117-
2626798
117+
5208248
118118
"""
119119

120120
@cache

0 commit comments

Comments
 (0)