mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 05:26:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给定一种规律 <code>pattern</code> 和一个字符串 <code>s</code> ,判断 <code>s</code> 是否遵循相同的规律。</p>\n\n<p>这里的 <strong>遵循 </strong>指完全匹配,例如, <code>pattern</code> 里的每个字母和字符串 <code>str</code><strong> </strong>中的每个非空单词之间存在着双向连接的对应规律。</p>\n\n<p> </p>\n\n<p><strong>示例1:</strong></p>\n\n<pre>\n<strong>输入:</strong> pattern = <code>\"abba\"</code>, str = <code>\"dog cat cat dog\"</code>\n<strong>输出:</strong> true</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<strong>输入:</strong>pattern = <code>\"abba\"</code>, str = <code>\"dog cat cat fish\"</code>\n<strong>输出:</strong> false</pre>\n\n<p><strong>示例 3:</strong></p>\n\n<pre>\n<strong>输入:</strong> pattern = <code>\"aaaa\"</code>, str = <code>\"dog cat cat dog\"</code>\n<strong>输出:</strong> false</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= pattern.length <= 300</code></li>\n\t<li><code>pattern</code> 只包含小写英文字母</li>\n\t<li><code>1 <= s.length <= 3000</code></li>\n\t<li><code>s</code> 只包含小写英文字母和 <code>' '</code></li>\n\t<li><code>s</code> <strong>不包含</strong> 任何前导或尾随对空格</li>\n\t<li><code>s</code> 中每个单词都被 <strong>单个空格 </strong>分隔</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 445,
|
||||
"likes": 461,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Isomorphic Strings\", \"titleSlug\": \"isomorphic-strings\", \"difficulty\": \"Easy\", \"translatedTitle\": \"\\u540c\\u6784\\u5b57\\u7b26\\u4e32\"}, {\"title\": \"Word Pattern II\", \"titleSlug\": \"word-pattern-ii\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5355\\u8bcd\\u89c4\\u5f8b II\"}]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"97.9K\", \"totalSubmission\": \"215.8K\", \"totalAcceptedRaw\": 97906, \"totalSubmissionRaw\": 215846, \"acRate\": \"45.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"100.8K\", \"totalSubmission\": \"222.7K\", \"totalAcceptedRaw\": 100841, \"totalSubmissionRaw\": 222656, \"acRate\": \"45.3%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user