mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"22.3K\", \"totalSubmission\": \"54.5K\", \"totalAcceptedRaw\": 22319, \"totalSubmissionRaw\": 54518, \"acRate\": \"40.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"22.3K\", \"totalSubmission\": \"54.5K\", \"totalAcceptedRaw\": 22326, \"totalSubmissionRaw\": 54532, \"acRate\": \"40.9%\"}",
|
||||
"hints": [
|
||||
"Preprocess the prefix maximum array, <code>prefix_max[i] = max(nums[0], nums[1], …, nums[i])</code> and the suffix maximum array, <code>suffix_max[i] = max(nums[i], nums[i + 1], …, nums[i - 1])</code>.",
|
||||
"For each index <code>j</code>, find two indices <code>i</code> and <code>k</code> such that <code>i < j < k</code> and <code>(nums[i] - nums[j]) * nums[k]</code> is the maximum, using the prefix and suffix maximum arrays.",
|
||||
|
Reference in New Issue
Block a user