mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 2688,
|
||||
"dislikes": 91,
|
||||
"likes": 2767,
|
||||
"dislikes": 93,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "[\"0201\",\"0101\",\"0102\",\"1212\",\"2002\"]\n\"0202\"\n[\"8888\"]\n\"0009\"\n[\"8887\",\"8889\",\"8878\",\"8898\",\"8788\",\"8988\",\"7888\",\"9888\"]\n\"8888\"",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"155.5K\", \"totalSubmission\": \"281.2K\", \"totalAcceptedRaw\": 155510, \"totalSubmissionRaw\": 281222, \"acRate\": \"55.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"159.5K\", \"totalSubmission\": \"288.3K\", \"totalAcceptedRaw\": 159542, \"totalSubmissionRaw\": 288299, \"acRate\": \"55.3%\"}",
|
||||
"hints": [
|
||||
"We can think of this problem as a shortest path problem on a graph: there are `10000` nodes (strings `'0000'` to `'9999'`), and there is an edge between two nodes if they differ in one digit, that digit differs by 1 (wrapping around, so `'0'` and `'9'` differ by 1), and if *both* nodes are not in `deadends`."
|
||||
],
|
||||
|
Reference in New Issue
Block a user