1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 16:01:41 +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

@@ -161,7 +161,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"4K\", \"totalSubmission\": \"11.7K\", \"totalAcceptedRaw\": 4004, \"totalSubmissionRaw\": 11711, \"acRate\": \"34.2%\"}",
"stats": "{\"totalAccepted\": \"4K\", \"totalSubmission\": \"11.7K\", \"totalAcceptedRaw\": 4004, \"totalSubmissionRaw\": 11714, \"acRate\": \"34.2%\"}",
"hints": [
"Notice that, <code>target</code> is either: A subarray of <code>nums</code>, or <code>prefix_sum[i]</code> + <code> k * sum(nums) </code> + <code>suffix_sum[j]</code> for some <code>i, j, k</code>.",
"You can solve the problem for those two separate cases using hash map and prefix sums."