摘要: link Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were i 阅读全文
posted @ 2017-10-03 22:01 bbbbq 阅读(154) 评论(0) 推荐(0)
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2017-10-03 19:37 bbbbq 阅读(102) 评论(0) 推荐(0)
摘要: link Implement wildcard pattern matching with support for '?' and '*'. 题意: 类似于正则表达式那道题,就是符号可以匹配的东西变了一下,更简单了- - 思路: dp[i][j]表示s[0,i)和p[0,j)是否能match上。 显 阅读全文
posted @ 2017-10-03 17:07 bbbbq 阅读(148) 评论(0) 推荐(0)
摘要: link Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rai 阅读全文
posted @ 2017-10-03 16:16 bbbbq 阅读(103) 评论(0) 推荐(0)