mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Hard",
|
||||
"likes": 17,
|
||||
"dislikes": 16,
|
||||
"dislikes": 18,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
"exampleTestcases": "[0,1,2,3,4,5,6,7]\n[[0,3],[5,1],[4,2]]\n[100,200,101,201,102,202,103,203]\n[[0,7]]",
|
||||
@@ -34,7 +34,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"951\", \"totalSubmission\": \"1.8K\", \"totalAcceptedRaw\": 951, \"totalSubmissionRaw\": 1829, \"acRate\": \"52.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"967\", \"totalSubmission\": \"1.9K\", \"totalAcceptedRaw\": 967, \"totalSubmissionRaw\": 1858, \"acRate\": \"52.0%\"}",
|
||||
"hints": [
|
||||
"Think if y cannot be small. You can solve a query in O(n/y), so if y is large enough, it won't be a problem.",
|
||||
"If y is small, like less than B, you can preprocess the answers for all such ys in O(n * B), then answer each such query in O(1).",
|
||||
|
Reference in New Issue
Block a user