1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 06:51:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -11,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 208,
"dislikes": 5,
"likes": 231,
"dislikes": 16,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Count Words Obtained After Adding a Letter\", \"titleSlug\": \"count-words-obtained-after-adding-a-letter\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
"exampleTestcases": "[\"abcd\",\"acbd\", \"aacd\"]\n[\"ab\",\"cd\",\"yz\"]\n[\"abcd\",\"cccc\",\"abyd\",\"abab\"]",
@@ -46,7 +46,7 @@
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"11.8K\", \"totalSubmission\": \"18.1K\", \"totalAcceptedRaw\": 11827, \"totalSubmissionRaw\": 18097, \"acRate\": \"65.4%\"}",
"stats": "{\"totalAccepted\": \"13.3K\", \"totalSubmission\": \"23.1K\", \"totalAcceptedRaw\": 13258, \"totalSubmissionRaw\": 23084, \"acRate\": \"57.4%\"}",
"hints": [
"BruteForce, check all pairs and verify if they differ in one character. O(n^2 * m) where n is the number of words and m is the length of each string.",
"O(m^2 * n), Use hashset, to insert all possible combinations adding a character \"*\". For example: If dict[i] = \"abc\", insert (\"*bc\", \"a*c\" and \"ab*\")."