1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-25 14:58:56 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -40,7 +40,7 @@
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"3.4K\", \"totalSubmission\": \"7.1K\", \"totalAcceptedRaw\": 3445, \"totalSubmissionRaw\": 7127, \"acRate\": \"48.3%\"}",
"stats": "{\"totalAccepted\": \"3.5K\", \"totalSubmission\": \"7.3K\", \"totalAcceptedRaw\": 3536, \"totalSubmissionRaw\": 7255, \"acRate\": \"48.7%\"}",
"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."