LeetCode311 稀疏矩阵的乘法 题目 解题 题目 解题 因为是稀疏矩阵,所以先找出非零的元素位置和值,只遍历非零位去做运算。 // javascript var multiply = function(mat1, mat2) { const m1 = mat1.length, n1 = mat1[0].length; const m2 = mat2.length, n2 = mat2[0].length; if (!m1 || !n1 ||