mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-09 01:11:42 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 16,
|
||||
"likes": 17,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -46,7 +46,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"767\", \"totalSubmission\": \"1.1K\", \"totalAcceptedRaw\": 767, \"totalSubmissionRaw\": 1084, \"acRate\": \"70.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"837\", \"totalSubmission\": \"1.2K\", \"totalAcceptedRaw\": 837, \"totalSubmissionRaw\": 1249, \"acRate\": \"67.0%\"}",
|
||||
"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*\")."
|
||||
|
Reference in New Issue
Block a user