mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"64.4K\", \"totalSubmission\": \"126.1K\", \"totalAcceptedRaw\": 64356, \"totalSubmissionRaw\": 126079, \"acRate\": \"51.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"64.4K\", \"totalSubmission\": \"126.1K\", \"totalAcceptedRaw\": 64385, \"totalSubmissionRaw\": 126126, \"acRate\": \"51.0%\"}",
|
||||
"hints": [
|
||||
"What if we sort the intervals? Considering the sorted intervals, how can we solve the problem with dynamic programming?",
|
||||
"Let's consider a DP(pos, limit) where pos represents the position of the current interval we are gonna take the decision and limit is the current covered area from [0 - limit]. This DP returns the minimum number of taken intervals or infinite if it's not possible to cover the [0 - T] section."
|
||||
|
Reference in New Issue
Block a user