mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"432.1K\", \"totalSubmission\": \"1M\", \"totalAcceptedRaw\": 432067, \"totalSubmissionRaw\": 1049124, \"acRate\": \"41.2%\"}",
|
||||
"stats": "{\"totalAccepted\": \"432.1K\", \"totalSubmission\": \"1M\", \"totalAcceptedRaw\": 432129, \"totalSubmissionRaw\": 1049306, \"acRate\": \"41.2%\"}",
|
||||
"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