题意:移动字符串一与另外的一个字符串匹配,找最多的匹配个数
策略 暴力 就是将一个字符串固定,然后用另一个字符串从左往右来跟这一字符串来比较
代码:...
分类:
其他好文 时间:
2014-08-22 16:18:39
阅读次数:
184
Jenkins 集成Xcode 项目的时候在证书上遇到了问题。实际上如果在本地的话。只要Xcode工程里选择了项目就不需要重新设置证书了。jenkins会自动找到这个证书,只要在build setting 里设置的是正常的。并且在xcode 里能正常编译。Check dependenciesCode...
分类:
其他好文 时间:
2014-08-22 16:11:39
阅读次数:
228
主要介绍MP(Matching Pursuits)算法和OMP(Orthogonal Matching Pursuit)算法[1],这两个算法尽管在90年代初就提出来了,但作为经典的算法,国内文献(可能有我没有搜索到)都仅描写叙述了算法步骤和简单的应用,并未对其进行详尽的分析,国外的文献还是分析的非...
分类:
其他好文 时间:
2014-08-19 18:26:45
阅读次数:
192
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2014-08-19 14:24:14
阅读次数:
182
产生原因:在xcode5里面不一定是因为你的真机证书有问题,有可能是因为,项目本来在别的组里有会出现此bug如果你出现上图的错误,只需要在此项目的***.xcodeproj 文件,然后右键选择“显示包内容”,如下图:一般情况下,包中有如下3个文件:1.project.pbxproj2.project...
分类:
其他好文 时间:
2014-08-19 12:42:44
阅读次数:
184
前天用递归LTE,昨天用动态规划LTE,今天接着搞,改用贪心法。题目再放一次:'?'匹配任意字符,'*'匹配任意长度字符串Some examples:isMatch("aa","a") → falseisMatch("aa","aa") → trueisMatch("aaa","aa") → fal...
分类:
其他好文 时间:
2014-08-19 00:56:13
阅读次数:
336
Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequen...
分类:
其他好文 时间:
2014-08-18 18:34:13
阅读次数:
214
前天wildcard matching没AC,今天接着搞,改用动态规划。题目再放一次:'?'匹配任意字符,'*'匹配任意长度字符串Some examples:isMatch("aa","a") → falseisMatch("aa","aa") → trueisMatch("aaa","aa") →...
分类:
其他好文 时间:
2014-08-18 00:06:43
阅读次数:
283
leetcode这道题还挺有意思的,实现通配符,'?'匹配任意字符,'*'匹配任意长度字符串,晚上尝试了一下,题目如下:Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single chara...
分类:
其他好文 时间:
2014-08-16 01:01:59
阅读次数:
351
Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including th...
分类:
其他好文 时间:
2014-08-14 19:44:09
阅读次数:
134