摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f 阅读全文
posted @ 2017-12-06 22:27 西瓜刀刀刀 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 给定一个m × n矩阵,如果一个元素为0,则将其整个行和列设置为0。 (1)思想1:用两个一维数组:flag_r 阅读全文
posted @ 2017-12-06 22:09 西瓜刀刀刀 阅读(116) 评论(0) 推荐(0) 编辑