mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 184,
|
||||
"dislikes": 32,
|
||||
"likes": 199,
|
||||
"dislikes": 36,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "1\n2\n2\n2",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"45.2K\", \"totalSubmission\": \"82.9K\", \"totalAcceptedRaw\": 45206, \"totalSubmissionRaw\": 82934, \"acRate\": \"54.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"45.8K\", \"totalSubmission\": \"83.9K\", \"totalAcceptedRaw\": 45793, \"totalSubmissionRaw\": 83907, \"acRate\": \"54.6%\"}",
|
||||
"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