mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"13.1K\", \"totalSubmission\": \"15.6K\", \"totalAcceptedRaw\": 13139, \"totalSubmissionRaw\": 15644, \"acRate\": \"84.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"13.1K\", \"totalSubmission\": \"15.6K\", \"totalAcceptedRaw\": 13142, \"totalSubmissionRaw\": 15648, \"acRate\": \"84.0%\"}",
|
||||
"hints": [
|
||||
"For each index i, maintain two variables leftSum and rightSum.",
|
||||
"Iterate on the range j: [0 … i - 1] and add nums[j] to the leftSum and similarly iterate on the range j: [i + 1 … nums.length - 1] and add nums[j] to the rightSum."
|
||||
|
Reference in New Issue
Block a user