mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-24 22:38:57 +08:00
update
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"3.3K\", \"totalSubmission\": \"8.6K\", \"totalAcceptedRaw\": 3310, \"totalSubmissionRaw\": 8604, \"acRate\": \"38.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"3.3K\", \"totalSubmission\": \"8.6K\", \"totalAcceptedRaw\": 3315, \"totalSubmissionRaw\": 8614, \"acRate\": \"38.5%\"}",
|
||||
"hints": [
|
||||
"Use a priority queue to store for each point i, the tuple [yi-xi, xi]",
|
||||
"Loop through the array and pop elements from the heap if the condition xj - xi > k, where j is the current index and i is the point on top the queue.",
|
||||
|
||||
Reference in New Issue
Block a user