Matrix Multiplication

Given integer matrices A and B of shapes m × k and k × n, compute and output their matrix product C = A × B.

C has shape m × n, with C[i][j] = Σ A[i][r] × B[r][j] over 0 ≤ r < k. Do not u...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: