mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"9.1K\", \"totalSubmission\": \"29.9K\", \"totalAcceptedRaw\": 9118, \"totalSubmissionRaw\": 29872, \"acRate\": \"30.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"9.1K\", \"totalSubmission\": \"29.9K\", \"totalAcceptedRaw\": 9122, \"totalSubmissionRaw\": 29885, \"acRate\": \"30.5%\"}",
|
||||
"hints": [
|
||||
"Try using a greedy approach where you take as many digits as possible from the left of the string for each partition.",
|
||||
"You can also use a dynamic programming approach, let an array dp where dp[i] is the solution of the problem for the prefix of the string ending at index i, the answer of the problem will be dp[n-1]. What are the transitions of this dp?"
|
||||
|
Reference in New Issue
Block a user