We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720feb3 commit bba79c9Copy full SHA for bba79c9
dynamic_programming/matrix_chain_multiplication.py
@@ -73,8 +73,7 @@ def matrix_chain_multiply(arr: list[int]) -> int:
73
722
74
>>> matrix_chain_multiply(list(range(1, 100)))
75
323398
76
-
77
- # >>> matrix_chain_multiply(list(range(1, 251)))
+ >>> # matrix_chain_multiply(list(range(1, 251)))
78
# 2626798
79
"""
80
if len(arr) < 2:
@@ -114,8 +113,7 @@ def matrix_chain_order(dims: list[int]) -> int:
114
113
115
>>> matrix_chain_order(list(range(1, 100)))
116
117
118
- # >>> matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
+ >>> # matrix_chain_order(list(range(1, 251))) # Max before RecursionError is raised
119
120
121
0 commit comments