摘要: 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 @ 2016-09-26 21:24 wangxiaobao1114 阅读(190) 评论(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.(Medium) 分析: 题意很简单,就是把为0的元素所在的行和列都置0; 首先不能直接边循环边做,这样会 阅读全文
posted @ 2016-09-26 21:22 wangxiaobao1114 阅读(184) 评论(0) 推荐(0) 编辑