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:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -40,7 +40,7 @@
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"1.1K\", \"totalSubmission\": \"2.2K\", \"totalAcceptedRaw\": 1128, \"totalSubmissionRaw\": 2197, \"acRate\": \"51.3%\"}",
"stats": "{\"totalAccepted\": \"1.1K\", \"totalSubmission\": \"2.2K\", \"totalAcceptedRaw\": 1130, \"totalSubmissionRaw\": 2201, \"acRate\": \"51.3%\"}",
"hints": [
"There will always be a way to make the prefix sum non-negative. How can we use that?",
"Loop over the array keeping the prefix sum. Whenever it goes negative, move the smallest number you have seen to the end."