mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
update
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"178.8K\", \"totalSubmission\": \"362.1K\", \"totalAcceptedRaw\": 178759, \"totalSubmissionRaw\": 362057, \"acRate\": \"49.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"178.8K\", \"totalSubmission\": \"362.1K\", \"totalAcceptedRaw\": 178768, \"totalSubmissionRaw\": 362072, \"acRate\": \"49.4%\"}",
|
||||
"hints": [
|
||||
"Compute the prefix sum array where psum[i] is the sum of all the elements from <i>0</i> to <i>i</i>.",
|
||||
"At each index <i>i</i>, the sum of the prefix is psum[i], so we are searching for the index x where psum[x] = psum[i] - k.\r\nThe subarray [x + 1, i] will be of sum k.",
|
||||
|
Reference in New Issue
Block a user