mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
update
This commit is contained in:
@@ -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."
|
||||
|
Reference in New Issue
Block a user