mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-21 13:06:47 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>你有一个单词列表 <code>words</code> 和一个模式 <code>pattern</code>,你想知道 <code>words</code> 中的哪些单词与模式匹配。</p>\n\n<p>如果存在字母的排列 <code>p</code> ,使得将模式中的每个字母 <code>x</code> 替换为 <code>p(x)</code> 之后,我们就得到了所需的单词,那么单词与模式是匹配的。</p>\n\n<p><em>(回想一下,字母的排列是从字母到字母的双射:每个字母映射到另一个字母,没有两个字母映射到同一个字母。)</em></p>\n\n<p>返回 <code>words</code> 中与给定模式匹配的单词列表。</p>\n\n<p>你可以按任何顺序返回答案。</p>\n\n<p> </p>\n\n<p><strong>示例:</strong></p>\n\n<pre><strong>输入:</strong>words = ["abc","deq","mee","aqq","dkd","ccc"], pattern = "abb"\n<strong>输出:</strong>["mee","aqq"]\n<strong>解释:\n</strong>"mee" 与模式匹配,因为存在排列 {a -> m, b -> e, ...}。\n"ccc" 与模式不匹配,因为 {a -> c, b -> c, ...} 不是排列。\n因为 a 和 b 映射到同一个字母。</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= words.length <= 50</code></li>\n\t<li><code>1 <= pattern.length = words[i].length <= 20</code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 124,
|
||||
"likes": 125,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"9.8K\", \"totalSubmission\": \"13.4K\", \"totalAcceptedRaw\": 9770, \"totalSubmissionRaw\": 13364, \"acRate\": \"73.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"10K\", \"totalSubmission\": \"13.6K\", \"totalAcceptedRaw\": 9951, \"totalSubmissionRaw\": 13619, \"acRate\": \"73.1%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user