Skip to content

Commit 720feb3

Browse files
committed
Fix
1 parent aa9a6e6 commit 720feb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dynamic_programming/matrix_chain_multiplication.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def matrix_chain_multiply(arr: list[int]) -> int:
7373
722
7474
>>> matrix_chain_multiply(list(range(1, 100)))
7575
323398
76+
7677
# >>> matrix_chain_multiply(list(range(1, 251)))
7778
# 2626798
7879
"""
@@ -113,6 +114,7 @@ def matrix_chain_order(dims: list[int]) -> int:
113114
722
114115
>>> matrix_chain_order(list(range(1, 100)))
115116
323398
117+
116118
# >>> matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
117119
# 2626798
118120
"""

0 commit comments

Comments
 (0)