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\": \"841.8K\", \"totalSubmission\": \"2M\", \"totalAcceptedRaw\": 841807, \"totalSubmissionRaw\": 2046877, \"acRate\": \"41.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"841.9K\", \"totalSubmission\": \"2M\", \"totalAcceptedRaw\": 841890, \"totalSubmissionRaw\": 2047103, \"acRate\": \"41.1%\"}",
|
||||
"hints": [
|
||||
"Use dynamic programming since, from each cell, you can move to the right or down.",
|
||||
"assume dp[i][j] is the number of unique paths to reach (i, j). dp[i][j] = dp[i][j -1] + dp[i - 1][j]. Be careful when you encounter an obstacle. set its value in dp to 0."
|
||||
|
Reference in New Issue
Block a user