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