Find the minimum number of scalar multiplications to multiply a chain of matrices.
Constraints
Example
>>> min_mult_cost([10, 30, 5, 60]) 4500 >>> min_mult_cost([2, 3, 4]) 24 >>> min_mult_cost([1]) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints