题目要求在常数空间内将矩阵中为0的行和列全部置0。解法:用第一行和第一列作为标记数组,先记录其原始是否含0(通过flag保存),再遍历其余区域,若遇0则在对应首行首列标记;最后根据 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results