由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 关于wildcard match和regex match的一个问题
相关主题
Wildcard Matching 和 Regular Expression Matching 区别是什么正则的题
regex matching algorithm[A家]空气床和早餐家一道onsite 题目
regex 用DP做对不对啊?Leetcode regular expression 问题
面试遇到了Regular Expression Matching时间复杂度是多少?如果面试遇到 regular expression match 或者 wildcard matching之类的
wildcard matching 超时Leetcode problems' difficulty
几道微软面试题问一道题
实现regex(.*+)和wildcard(?*)匹配的题问一道LeeCode题目: regular expression matching
一道字符串题目问一道Leetcode的题目。
相关话题的讨论汇总
话题: matches话题: wildcard话题: regex话题: any话题: sequence
进入JobHunting版参与讨论
1 (共1页)
j********2
发帖数: 82
1
wildcard:
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
regex:
‘.’ Matches any single character.
‘*’ Matches zero or more of the preceding element.
假设用recursion, 怎样的examples会导致exponentional time?
Note that for pattern "******", we can use a loop to skip those. Thus, ("
aaaaaaaab", "*****ab") is not such an example.
h******8
发帖数: 55
2
好像找不出这样的例子。wiki 上的例子是{(a|aa)*b, aaaaaaab},但是这里我们不用
实现()和|。

【在 j********2 的大作中提到】
: wildcard:
: '?' Matches any single character.
: '*' Matches any sequence of characters (including the empty sequence).
: regex:
: ‘.’ Matches any single character.
: ‘*’ Matches zero or more of the preceding element.
: 假设用recursion, 怎样的examples会导致exponentional time?
: Note that for pattern "******", we can use a loop to skip those. Thus, ("
: aaaaaaaab", "*****ab") is not such an example.

j********2
发帖数: 82
3
wildcard:
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
regex:
‘.’ Matches any single character.
‘*’ Matches zero or more of the preceding element.
假设用recursion, 怎样的examples会导致exponentional time?
Note that for pattern "******", we can use a loop to skip those. Thus, ("
aaaaaaaab", "*****ab") is not such an example.
h******8
发帖数: 55
4
好像找不出这样的例子。wiki 上的例子是{(a|aa)*b, aaaaaaab},但是这里我们不用
实现()和|。

【在 j********2 的大作中提到】
: wildcard:
: '?' Matches any single character.
: '*' Matches any sequence of characters (including the empty sequence).
: regex:
: ‘.’ Matches any single character.
: ‘*’ Matches zero or more of the preceding element.
: 假设用recursion, 怎样的examples会导致exponentional time?
: Note that for pattern "******", we can use a loop to skip those. Thus, ("
: aaaaaaaab", "*****ab") is not such an example.

c********t
发帖数: 5706
5
"aaaaaaab" "*ab" recursion 就是exponentional time吧

【在 j********2 的大作中提到】
: wildcard:
: '?' Matches any single character.
: '*' Matches any sequence of characters (including the empty sequence).
: regex:
: ‘.’ Matches any single character.
: ‘*’ Matches zero or more of the preceding element.
: 假设用recursion, 怎样的examples会导致exponentional time?
: Note that for pattern "******", we can use a loop to skip those. Thus, ("
: aaaaaaaab", "*****ab") is not such an example.

1 (共1页)
进入JobHunting版参与讨论
相关主题
问一道Leetcode的题目。wildcard matching 超时
regex match几道微软面试题
问到题实现regex(.*+)和wildcard(?*)匹配的题
G家电面题一道字符串题目
Wildcard Matching 和 Regular Expression Matching 区别是什么正则的题
regex matching algorithm[A家]空气床和早餐家一道onsite 题目
regex 用DP做对不对啊?Leetcode regular expression 问题
面试遇到了Regular Expression Matching时间复杂度是多少?如果面试遇到 regular expression match 或者 wildcard matching之类的
相关话题的讨论汇总
话题: matches话题: wildcard话题: regex话题: any话题: sequence