mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"3.8K\", \"totalSubmission\": \"8.2K\", \"totalAcceptedRaw\": 3817, \"totalSubmissionRaw\": 8154, \"acRate\": \"46.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"3.8K\", \"totalSubmission\": \"8.2K\", \"totalAcceptedRaw\": 3818, \"totalSubmissionRaw\": 8155, \"acRate\": \"46.8%\"}",
|
||||
"hints": [
|
||||
"Consider how to calculate the minimum number of operations when <code>nums1[n - 1]</code> and <code>nums2[n - 1]</code> are fixed (they are not swapped).",
|
||||
"For each index <code>i</code>, there are only <code>3</code> possibilities: <ul>\r\n<li><code>nums1[i] <= nums1[n - 1] && nums2[i] <= nums2[n - 1]</code>. We don't need to swap them.</li>\r\n<li><code>nums1[i] <= nums2[n - 1] && nums2[i] <= nums1[n - 1]</code>. We have to swap them.</li>\r\n<li>Otherwise, there is no solution.</li>\r\n</ul>",
|
||||
|
Reference in New Issue
Block a user