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

@@ -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.",