Skip to content

Commit aa9a6e6

Browse files
committed
Fix
1 parent 624a79d commit aa9a6e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dynamic_programming/matrix_chain_multiplication.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def matrix_chain_multiply(arr: list[int]) -> int:
7373
722
7474
>>> matrix_chain_multiply(list(range(1, 100)))
7575
323398
76-
>>> matrix_chain_multiply(list(range(1, 251)))
77-
5208248
76+
# >>> matrix_chain_multiply(list(range(1, 251)))
77+
# 2626798
7878
"""
7979
if len(arr) < 2:
8080
return 0
@@ -113,8 +113,8 @@ def matrix_chain_order(dims: list[int]) -> int:
113113
722
114114
>>> matrix_chain_order(list(range(1, 100)))
115115
323398
116-
>>> matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
117-
5208248
116+
# >>> matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
117+
# 2626798
118118
"""
119119

120120
@cache

0 commit comments

Comments
 (0)