Open justmao945 opened 9 years ago
The recursive version can be accepted on leetcode, but it's not a O(N) solution. Please consider cases from wildcard matching:
abbabaaabbabbaababbabbbbbabbbabbbabaaaaababababbbabababaabbababaabbbbbbaaaabababbbaabbbbaabbbbababababbaabbaababaabbbababababbbbaaabbbbbabaaaabbababbbbaababaabbababbbbbababbbabaaaaaaaabbbbbaabaaababaaaabb .*aa.*ba.*a.*bb.*aa.*ab.*a.*aaaaaa.*a.*aaaa.*bba
This case never return on my machine.
The recursive version can be accepted on leetcode, but it's not a O(N) solution. Please consider cases from wildcard matching:
This case never return on my machine.