1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -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)."