mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"11.7K\", \"totalSubmission\": \"22K\", \"totalAcceptedRaw\": 11741, \"totalSubmissionRaw\": 21965, \"acRate\": \"53.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"11.8K\", \"totalSubmission\": \"22K\", \"totalAcceptedRaw\": 11763, \"totalSubmissionRaw\": 21998, \"acRate\": \"53.5%\"}",
|
||||
"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