mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -167,7 +167,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"44.3K\", \"totalSubmission\": \"112.5K\", \"totalAcceptedRaw\": 44329, \"totalSubmissionRaw\": 112465, \"acRate\": \"39.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"44.3K\", \"totalSubmission\": \"112.5K\", \"totalAcceptedRaw\": 44335, \"totalSubmissionRaw\": 112482, \"acRate\": \"39.4%\"}",
|
||||
"hints": [
|
||||
"Make a new array A of +1/-1s corresponding to if hours[i] is > 8 or not. The goal is to find the longest subarray with positive sum.",
|
||||
"Using prefix sums (PrefixSum[i+1] = A[0] + A[1] + ... + A[i]), you need to find for each j, the smallest i < j with PrefixSum[i] + 1 == PrefixSum[j]."
|
||||
|
Reference in New Issue
Block a user