1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 15:31:43 +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": "Easy",
"likes": 315,
"dislikes": 20,
"likes": 332,
"dislikes": 22,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Number of Students Unable to Eat Lunch\", \"titleSlug\": \"number-of-students-unable-to-eat-lunch\", \"difficulty\": \"Easy\", \"translatedTitle\": null}]",
"exampleTestcases": "[2,3,2]\n2\n[5,1,1,1]\n0",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"19.8K\", \"totalSubmission\": \"31.8K\", \"totalAcceptedRaw\": 19783, \"totalSubmissionRaw\": 31771, \"acRate\": \"62.3%\"}",
"stats": "{\"totalAccepted\": \"21.4K\", \"totalSubmission\": \"34.3K\", \"totalAcceptedRaw\": 21404, \"totalSubmissionRaw\": 34298, \"acRate\": \"62.4%\"}",
"hints": [
"Loop through the line of people and decrement the number of tickets for each to buy one at a time as if simulating the line moving forward. Keep track of how many tickets have been sold up until person k has no more tickets to buy.",
"Remember that those who have no more tickets to buy will leave the line."