一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given a string containing only digits, restore it by returning all possible valid IP address combi...
分类:
其他好文 时间:
2016-06-16 14:52:05
阅读次数:
102
Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true. ...
分类:
其他好文 时间:
2016-06-15 15:52:23
阅读次数:
147
没有用数学方法,直接用String的方法做的 ...
分类:
其他好文 时间:
2016-06-15 06:59:04
阅读次数:
137
1、slug:用于生成一个有意义(valid, meaninful)URL 参考(http://stackoverflow.com/questions/427102/what-is-a-slug-in-django) 比如:http://stackoverflow.com/questions/427 ...
分类:
其他好文 时间:
2016-06-14 19:27:37
阅读次数:
201
问题描述:给定9x9矩阵,看是是否是有效数独,不用全部都填上数字,可以为. 算法分析:这道题就是判断,不难,有效数独三个充分条件,行,列,3*3子矩阵,都要满足数字不能重复。 ...
分类:
其他好文 时间:
2016-06-12 15:09:14
阅读次数:
126
题目描述:给出一个字符串数组S,找到其中所有的乱序字符串(Anagram)。如果一个字符串是乱序字符串,那么他存在一个字母集合相同,但顺序不同的字符串也在S中。
样例:对于字符串数组 ["lint","intl","inlt","code"],返回 ["lint","inlt","intl"]
还是使用哈希表。对于每个字符串出现的字符构成键,所在的索引构成值。这样,所有值中不止一个的,...
分类:
其他好文 时间:
2016-06-12 03:32:18
阅读次数:
228
题目链接:https://leetcode.com/problems/longest-valid-parentheses/题目:
Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.For...
分类:
其他好文 时间:
2016-06-12 02:16:31
阅读次数:
112
题目链接:https://leetcode.com/problems/valid-sudoku/
题目:
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
The Sudoku board could be partially filled, where empty cells ar...
分类:
其他好文 时间:
2016-06-12 02:12:02
阅读次数:
165
题目: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled ...
分类:
其他好文 时间:
2016-06-11 11:51:14
阅读次数:
208
Warning:array_filter()expectsparameter2tobeavalidcallback,function‘checkMonth‘notfoundorinvalidfunctionnameinpath\to\xxxModel.phponline36下面是相关的Code片段-php版本:5.6:functioncheckMonth($v){
return$v==$this->month;
}
functiongetByMonth($month){
$ret..
分类:
其他好文 时间:
2016-06-11 07:11:06
阅读次数:
546