以下题号均为LeetCode题号,便于查看原题。

10. Regular Expression Matching

题意:实现字符串的正则匹配,包含'.' 和 '*'。'.' 匹配任意一个字符,"*" 匹配 '*' 之前的0个或多个字符。

example:

isMatch("aa","a") → false
isMatch("aa","aa") → true
isMatch("aaa","aa") → false
isMatch("aa", "a*") → true
isMatch("aa", ".*") → true
isMatch("ab", ".*") → true
isMatch("aab", "c*a*b") → true
View Code

相关文章:

  • 2021-06-15
  • 2021-06-21
  • 2022-12-23
  • 2021-08-24
  • 2021-08-31
  • 2021-06-19
  • 2021-08-07
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-07-30
  • 2021-12-14
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案