LeetCode073——矩阵置零

我的LeetCode代码仓:https://github.com/617076674/LeetCode 原题链接:https://leetcode-cn.com/problems/set-matrix-zeroes/description/ 题目描述: 知识点:数组 思路一:使用O(m * n)的额外空间 用一个矩阵flag来记录matrix矩阵中0元素所在的位置,再根据flag矩阵来给matri
相关文章
相关标签/搜索