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-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -11,7 +11,7 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 2681,
"likes": 2688,
"dislikes": 91,
"isLiked": null,
"similarQuestions": "[]",
@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"155.3K\", \"totalSubmission\": \"280.8K\", \"totalAcceptedRaw\": 155276, \"totalSubmissionRaw\": 280780, \"acRate\": \"55.3%\"}",
"stats": "{\"totalAccepted\": \"155.5K\", \"totalSubmission\": \"281.2K\", \"totalAcceptedRaw\": 155510, \"totalSubmissionRaw\": 281222, \"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`."
],