Matrix
文章平均质量分 63
WayneShan
这个作者很懒,什么都没留下…
展开
-
【LeetCode】【JAVA】【042】Set Matrix Zeroes
题目: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A straight forward solution using O(mn) space is probably a原创 2015-02-21 02:22:33 · 134 阅读 · 0 评论 -
【LeetCode】【JAVA】【063】Unique Paths II
题目: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively in the g原创 2015-03-24 12:57:17 · 120 阅读 · 0 评论