http://blog.csdn.net/liyi_/article/details/42736903Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*...
分类:
其他好文 时间:
2015-01-15 12:32:25
阅读次数:
138
# -*- coding: utf8 -*-'''https://oj.leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for '.' and '...
分类:
编程语言 时间:
2015-01-15 00:11:02
阅读次数:
215
【问题】
在做LeetCode的Merge Intervals时用到c++的sort函数,一直出这个错误,甚是郁闷。最后终于找到了问题所在。
【代码】
#include
#include
#include
using namespace std;
struct Interval {
int start;
int end;
Interval() : st...
分类:
编程语言 时间:
2015-01-14 18:01:28
阅读次数:
141
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2015-01-14 12:50:05
阅读次数:
162
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:
其他好文 时间:
2015-01-13 19:32:58
阅读次数:
160
描述GiventwostringsAandB,whosealphabetconsistonly‘0’and‘1’.YourtaskisonlytotellhowmanytimesdoesAappearasasubstringofB?Forexample,thetextstringBis‘1001110110’whilethepatternstringAis‘11’,youshouldoutput3,becausethepatternAappearedattheposit输入Thefir..
分类:
其他好文 时间:
2015-01-13 01:33:32
阅读次数:
132
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching should cover t...
分类:
其他好文 时间:
2015-01-12 16:39:22
阅读次数:
168
Wildcard MatchingImplement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters...
分类:
其他好文 时间:
2015-01-10 22:20:52
阅读次数:
222
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2015-01-08 20:17:55
阅读次数:
216
Regular Expression MatchingImplement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more o...
分类:
其他好文 时间:
2015-01-07 21:58:44
阅读次数:
141