1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 07: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": 1073,
"dislikes": 67,
"likes": 1118,
"dislikes": 69,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "[\"CustomStack\",\"push\",\"push\",\"pop\",\"push\",\"push\",\"push\",\"increment\",\"increment\",\"pop\",\"pop\",\"pop\",\"pop\"]\n[[3],[1],[2],[],[2],[3],[4],[5,100],[2,100],[],[],[],[]]",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"66K\", \"totalSubmission\": \"85.7K\", \"totalAcceptedRaw\": 66050, \"totalSubmissionRaw\": 85699, \"acRate\": \"77.1%\"}",
"stats": "{\"totalAccepted\": \"67.8K\", \"totalSubmission\": \"88K\", \"totalAcceptedRaw\": 67824, \"totalSubmissionRaw\": 88001, \"acRate\": \"77.1%\"}",
"hints": [
"Use an array to represent the stack. Push will add new integer to the array. Pop removes the last element in the array and increment will add val to the first k elements of the array.",
"This solution run in O(1) per push and pop and O(k) per increment."