mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"17.2K\", \"totalSubmission\": \"23K\", \"totalAcceptedRaw\": 17171, \"totalSubmissionRaw\": 22975, \"acRate\": \"74.7%\"}",
|
||||
"stats": "{\"totalAccepted\": \"17.2K\", \"totalSubmission\": \"23K\", \"totalAcceptedRaw\": 17172, \"totalSubmissionRaw\": 22976, \"acRate\": \"74.7%\"}",
|
||||
"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