mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 237,
|
||||
"dislikes": 88,
|
||||
"likes": 243,
|
||||
"dislikes": 89,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "[\"Fancy\",\"append\",\"addAll\",\"append\",\"multAll\",\"getIndex\",\"addAll\",\"append\",\"multAll\",\"getIndex\",\"getIndex\",\"getIndex\"]\n[[],[2],[3],[7],[2],[0],[3],[10],[2],[0],[1],[2]]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"6.8K\", \"totalSubmission\": \"44.2K\", \"totalAcceptedRaw\": 6771, \"totalSubmissionRaw\": 44234, \"acRate\": \"15.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"7K\", \"totalSubmission\": \"45.4K\", \"totalAcceptedRaw\": 6970, \"totalSubmissionRaw\": 45365, \"acRate\": \"15.4%\"}",
|
||||
"hints": [
|
||||
"Use two arrays to save the cumulative multipliers at each time point and cumulative sums adjusted by the current multiplier.",
|
||||
"The function getIndex(idx) ask to the current value modulo 10^9+7. Use modular inverse and both arrays to calculate this value."
|
||||
|
Reference in New Issue
Block a user