mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"6.2K\", \"totalSubmission\": \"20K\", \"totalAcceptedRaw\": 6219, \"totalSubmissionRaw\": 19996, \"acRate\": \"31.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"6.2K\", \"totalSubmission\": \"20K\", \"totalAcceptedRaw\": 6219, \"totalSubmissionRaw\": 19997, \"acRate\": \"31.1%\"}",
|
||||
"hints": [
|
||||
"We can use dynamic programming. Let dp[i][val] be the answer using only the first i + 1 elements, and the last element in the subsequence is equal to val.",
|
||||
"The only value that might change between dp[i - 1] and dp[i] are dp[i - 1][val] and dp[i][val].",
|
||||
|
Reference in New Issue
Block a user