Matrix Chain Multiplication
Medium
Interval DP
Given the dimensions of a chain of matrices, where matrix i has size dims[i-1] x dims[i], print the minimum number of scalar multiplications needed to multiply the whole chain.
Constraints
3 <= n <= 100 1 <= dims[i] <= 500
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.