0311. Sparse Matrix Multiplication
https://leetcode.com/problems/sparse-matrix-multiplication
Description
Given two sparse matrices mat1 of size m x k and mat2 of size k x n, return the result of mat1 x mat2. You may assume that multiplication is always possible.
Example 1:

Example 2:
Constraints:
m == mat1.lengthk == mat1[i].length == mat2.lengthn == mat2[i].length1 <= m, n, k <= 100-100 <= mat1[i][j], mat2[i][j] <= 100
ac
math problem.
Last updated
Was this helpful?