mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-08 08:51:42 +08:00
update
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"47.2K\", \"totalSubmission\": \"166K\", \"totalAcceptedRaw\": 47172, \"totalSubmissionRaw\": 165976, \"acRate\": \"28.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"47.2K\", \"totalSubmission\": \"166K\", \"totalAcceptedRaw\": 47196, \"totalSubmissionRaw\": 166041, \"acRate\": \"28.4%\"}",
|
||||
"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