mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
update
This commit is contained in:
@@ -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."
|
||||
|
Reference in New Issue
Block a user