1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 15:31:43 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"98.1K\", \"totalSubmission\": \"114.2K\", \"totalAcceptedRaw\": 98116, \"totalSubmissionRaw\": 114195, \"acRate\": \"85.9%\"}",
"stats": "{\"totalAccepted\": \"98.2K\", \"totalSubmission\": \"114.3K\", \"totalAcceptedRaw\": 98189, \"totalSubmissionRaw\": 114272, \"acRate\": \"85.9%\"}",
"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."