mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一个字符串 (<code>s</code>) 和一个字符模式 (<code>p</code>) ,实现一个支持 <code>'?'</code> 和 <code>'*'</code> 的通配符匹配。</p>\n\n<pre>'?' 可以匹配任何单个字符。\n'*' 可以匹配任意字符串(包括空字符串)。\n</pre>\n\n<p>两个字符串<strong>完全匹配</strong>才算匹配成功。</p>\n\n<p><strong>说明:</strong></p>\n\n<ul>\n\t<li><code>s</code> 可能为空,且只包含从 <code>a-z</code> 的小写字母。</li>\n\t<li><code>p</code> 可能为空,且只包含从 <code>a-z</code> 的小写字母,以及字符 <code>?</code> 和 <code>*</code>。</li>\n</ul>\n\n<p><strong>示例 1:</strong></p>\n\n<pre><strong>输入:</strong>\ns = "aa"\np = "a"\n<strong>输出:</strong> false\n<strong>解释:</strong> "a" 无法匹配 "aa" 整个字符串。</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre><strong>输入:</strong>\ns = "aa"\np = "*"\n<strong>输出:</strong> true\n<strong>解释:</strong> '*' 可以匹配任意字符串。\n</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre><strong>输入:</strong>\ns = "cb"\np = "?a"\n<strong>输出:</strong> false\n<strong>解释:</strong> '?' 可以匹配 'c', 但第二个 'a' 无法匹配 'b'。\n</pre>\n\n<p><strong>示例 4:</strong></p>\n\n<pre><strong>输入:</strong>\ns = "adceb"\np = "*a*b"\n<strong>输出:</strong> true\n<strong>解释:</strong> 第一个 '*' 可以匹配空字符串, 第二个 '*' 可以匹配字符串 "dce".\n</pre>\n\n<p><strong>示例 5:</strong></p>\n\n<pre><strong>输入:</strong>\ns = "acdcb"\np = "a*c?b"\n<strong>输出:</strong> false</pre>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 844,
|
||||
"likes": 847,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Regular Expression Matching\", \"titleSlug\": \"regular-expression-matching\", \"difficulty\": \"Hard\", \"translatedTitle\": \"\\u6b63\\u5219\\u8868\\u8fbe\\u5f0f\\u5339\\u914d\"}]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"100.1K\", \"totalSubmission\": \"301.9K\", \"totalAcceptedRaw\": 100066, \"totalSubmissionRaw\": 301911, \"acRate\": \"33.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"100.3K\", \"totalSubmission\": \"302.6K\", \"totalAcceptedRaw\": 100305, \"totalSubmissionRaw\": 302622, \"acRate\": \"33.1%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user