mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"3K\", \"totalSubmission\": \"9.5K\", \"totalAcceptedRaw\": 3015, \"totalSubmissionRaw\": 9456, \"acRate\": \"31.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"3K\", \"totalSubmission\": \"9.5K\", \"totalAcceptedRaw\": 3026, \"totalSubmissionRaw\": 9486, \"acRate\": \"31.9%\"}",
|
||||
"hints": [
|
||||
"First use any shortest path algorithm to get edges where dist[u] + weight = dist[v], here dist[x] is the shortest distance between node 0 and x",
|
||||
"Using those edges only the graph turns into a dag now we just need to know the number of ways to get from node 0 to node n - 1 on a dag using dp"
|
||||
|
Reference in New Issue
Block a user