Matrix Multiplication
Easy
math
Jane Street
Two Sigma
Google
Multiply two matrices represented as 2D lists. Return the resulting matrix.
Example
mat_mul([[1, 2], [3, 4]], [[5, 6], [7, 8]])
# => [[19, 22], [43, 50]]
Test Cases
Python Editor
Output
Click "Run" to see results...