Spurs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年8月19日

摘要: 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-08-19 18:43 英雄与侠义的化身 阅读(137) 评论(0) 推荐(0) 编辑

摘要: Given a matrix, if an element is , set its entire row and column to . Do it in place. 重点是空间复杂度限制为常数. 人家想法: 用 matrix 的第0行和第0列的元素分别记录所对应的行和列是否有0. 比较特殊,我 阅读全文
posted @ 2017-08-19 12:19 英雄与侠义的化身 阅读(120) 评论(0) 推荐(0) 编辑