mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 311,
|
||||
"dislikes": 34,
|
||||
"likes": 317,
|
||||
"dislikes": 35,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "4\n2\n3\n1\n30\n7",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"6.6K\", \"totalSubmission\": \"15.5K\", \"totalAcceptedRaw\": 6569, \"totalSubmissionRaw\": 15464, \"acRate\": \"42.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"6.7K\", \"totalSubmission\": \"15.8K\", \"totalAcceptedRaw\": 6699, \"totalSubmissionRaw\": 15776, \"acRate\": \"42.5%\"}",
|
||||
"hints": [
|
||||
"Try to use dynamic programming where the current index and remaining number of line segments to form can describe any intermediate state.",
|
||||
"To make the computation of each state in constant time, we could add another flag to the state that indicates whether or not we are in the middle of placing a line (placed start point but no endpoint)."
|
||||
|
Reference in New Issue
Block a user