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\": \"49K\", \"totalSubmission\": \"92.3K\", \"totalAcceptedRaw\": 49012, \"totalSubmissionRaw\": 92255, \"acRate\": \"53.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"49K\", \"totalSubmission\": \"92.3K\", \"totalAcceptedRaw\": 49015, \"totalSubmissionRaw\": 92258, \"acRate\": \"53.1%\"}",
|
||||
"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