1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-09 01:11:42 +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

@@ -40,7 +40,7 @@
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"69.7K\", \"totalSubmission\": \"119.3K\", \"totalAcceptedRaw\": 69718, \"totalSubmissionRaw\": 119279, \"acRate\": \"58.4%\"}",
"stats": "{\"totalAccepted\": \"69.7K\", \"totalSubmission\": \"119.3K\", \"totalAcceptedRaw\": 69722, \"totalSubmissionRaw\": 119287, \"acRate\": \"58.4%\"}",
"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."