摘要:        
就是先遍历二维数组,然后用首行和首列作为标记是否整行整列要设为0。对于首行首列本身,另用两个boolean记录。public class Solution { public void setZeroes(int[][] matrix) { // Start typing your Java solution below // DO NOT write main() function int m = matrix.length; if (m == 0) return; int n = matrix[0].length...    阅读全文
posted @ 2013-08-06 23:43
阿牧遥
阅读(536)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号