1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 06:51:41 +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": 297,
"dislikes": 14,
"likes": 317,
"dislikes": 15,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Non-decreasing Array\", \"titleSlug\": \"non-decreasing-array\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Longest Mountain in Array\", \"titleSlug\": \"longest-mountain-in-array\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Find in Mountain Array\", \"titleSlug\": \"find-in-mountain-array\", \"difficulty\": \"Hard\", \"translatedTitle\": null}, {\"title\": \"Maximum Ascending Subarray Sum\", \"titleSlug\": \"maximum-ascending-subarray-sum\", \"difficulty\": \"Easy\", \"translatedTitle\": null}]",
"exampleTestcases": "[5,3,3,3,5,6,2]\n2\n[1,1,1,1,1]\n0\n[1,2,3,4,5,6]\n2",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"8.9K\", \"totalSubmission\": \"19.1K\", \"totalAcceptedRaw\": 8881, \"totalSubmissionRaw\": 19126, \"acRate\": \"46.4%\"}",
"stats": "{\"totalAccepted\": \"9.5K\", \"totalSubmission\": \"20.6K\", \"totalAcceptedRaw\": 9544, \"totalSubmissionRaw\": 20564, \"acRate\": \"46.4%\"}",
"hints": [
"The trivial solution is to check the time days before and after each day. There are a lot of repeated operations using this solution. How could we optimize this solution?",
"We can use precomputation to make the solution faster.",