LeetCode073——矩陣置零

我的LeetCode代碼倉:https://github.com/617076674/LeetCode 原題鏈接:https://leetcode-cn.com/problems/set-matrix-zeroes/description/ 題目描述: 知識點:數組 思路一:使用O(m * n)的額外空間 用一個矩陣flag來記錄matrix矩陣中0元素所在的位置,再根據flag矩陣來給matri
相關文章
相關標籤/搜索