2015年3月12日

Unique Paths II

摘要: 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... 阅读全文

posted @ 2015-03-12 16:52 zhouzhou0615 阅读(126) 评论(0) 推荐(0) 编辑

Trapping Rain Water

摘要: Trapping Rain Water问题:Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to... 阅读全文

posted @ 2015-03-12 09:02 zhouzhou0615 阅读(171) 评论(0) 推荐(0) 编辑

Set Matrix Zeroes

摘要: Set Matrix Zeroes问题:Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.思路: 用标记数组进行标记我的代码:public class Solution ... 阅读全文

posted @ 2015-03-12 08:43 zhouzhou0615 阅读(120) 评论(0) 推荐(0) 编辑

导航