![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
baidu_31796423
这个作者很懒,什么都没留下…
展开
-
word Pattern 290
Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str.原创 2016-03-15 21:59:10 · 166 阅读 · 0 评论 -
leetcode330:Patching Array(贪心)
330. Patching ArrayMy SubmissionsQuestionTotal Accepted: 5548 Total Submissions: 19333 Difficulty: MediumGiven a sorted positive integer array nums and an integer n, add/patch转载 2016-03-16 20:51:44 · 284 阅读 · 0 评论 -
leetcode326. Power of Three
leetcode326转载 2016-02-27 11:02:32 · 157 阅读 · 0 评论 -
leetcode 11
11. Container With Most WaterGiven n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of lin原创 2016-05-30 20:08:11 · 318 阅读 · 0 评论 -
73. Set Matrix Zeroes
public class Solution73 {/*发现学习真是永无止境,而自己在这里却啥都不愿意干,不想动脑。。。说说此题解法* 思路:要想使用常量的空间数,一种可能是看看此题能不能使用几个变量就把问题解决,另一种思路就是想办法使用* 现有的空间,本题就是如此。* 1.检查第一行和第一列是否有0,有的话用boolean记下来,因为一会需要使用这个空间来记录是否行列里有0*原创 2016-06-23 17:24:43 · 441 阅读 · 0 评论