Skip to content

Commit bba79c9

Browse files
committed
Fix
1 parent 720feb3 commit bba79c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

dynamic_programming/matrix_chain_multiplication.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def matrix_chain_multiply(arr: list[int]) -> int:
7373
722
7474
>>> matrix_chain_multiply(list(range(1, 100)))
7575
323398
76-
77-
# >>> matrix_chain_multiply(list(range(1, 251)))
76+
>>> # matrix_chain_multiply(list(range(1, 251)))
7877
# 2626798
7978
"""
8079
if len(arr) < 2:
@@ -114,8 +113,7 @@ def matrix_chain_order(dims: list[int]) -> int:
114113
722
115114
>>> matrix_chain_order(list(range(1, 100)))
116115
323398
117-
118-
# >>> matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
116+
>>> # matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
119117
# 2626798
120118
"""
121119

0 commit comments

Comments
 (0)