mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 511,
|
||||
"likes": 512,
|
||||
"dislikes": 80,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"56K\", \"totalSubmission\": \"99.3K\", \"totalAcceptedRaw\": 56037, \"totalSubmissionRaw\": 99316, \"acRate\": \"56.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"56K\", \"totalSubmission\": \"99.3K\", \"totalAcceptedRaw\": 56040, \"totalSubmissionRaw\": 99319, \"acRate\": \"56.4%\"}",
|
||||
"hints": [
|
||||
"We can think of this problem as the problem of finding an Euler path (a path visiting every edge exactly once) on the following graph: there are $$k^{n-1}$$ nodes with each node having $$k$$ edges. It turns out this graph always has an Eulerian circuit (path starting where it ends.)\r\n\r\nWe should visit each node in \"post-order\" so as to not get stuck in the graph prematurely."
|
||||
],
|
||||
|
Reference in New Issue
Block a user