Leetcode题解-6.regular-expression-matching

[TOC]

题目背景

https://leetcode-cn.com/problems/longest-palindromic-substring/

给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 '.' 和 '*' 的正则表达式匹配。

'.' 匹配任意单个字符 '*' 匹配零个或多个前面的那一个元素 所谓匹配,是要涵盖 整个 字符串 s的,而不是部分字符串。

说明: s 可能为空,且只包含从 a-z 的小写字母。 p 可能为空,且只包含从 a-z 的小写字母,以及字符 . 和 *。

思路分析

代码实现

转载于:https://www.cnblogs.com/huanglong0438/p/11369153.html

你可能感兴趣的:(Leetcode题解-6.regular-expression-matching)