mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 06:51:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 852,
|
||||
"dislikes": 156,
|
||||
"likes": 856,
|
||||
"dislikes": 158,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Campus Bikes II\", \"titleSlug\": \"campus-bikes-ii\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
"exampleTestcases": "[[0,0],[2,1]]\n[[1,2],[3,3]]\n[[0,0],[1,1],[2,0]]\n[[1,0],[2,2],[2,1]]",
|
||||
@@ -40,7 +40,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"59.9K\", \"totalSubmission\": \"103K\", \"totalAcceptedRaw\": 59860, \"totalSubmissionRaw\": 102971, \"acRate\": \"58.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"60.3K\", \"totalSubmission\": \"103.9K\", \"totalAcceptedRaw\": 60337, \"totalSubmissionRaw\": 103871, \"acRate\": \"58.1%\"}",
|
||||
"hints": [
|
||||
"<p>Sort the elements by distance. In case of a tie, sort them by the index of the worker. After that, if there are still ties, sort them by the index of the bike.</p>\r\n\r\n<p>Can you do this in less than O(nlogn) time, where n is the total number of pairs between workers and bikes?</p>",
|
||||
"Loop the sorted elements and match each pair of worker and bike if the given worker and bike where not used."
|
||||
|
Reference in New Issue
Block a user