mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"46.4K\", \"totalSubmission\": \"86.8K\", \"totalAcceptedRaw\": 46355, \"totalSubmissionRaw\": 86810, \"acRate\": \"53.4%\"}",
|
||||
"stats": "{\"totalAccepted\": \"46.4K\", \"totalSubmission\": \"86.8K\", \"totalAcceptedRaw\": 46358, \"totalSubmissionRaw\": 86815, \"acRate\": \"53.4%\"}",
|
||||
"hints": [
|
||||
"Since both arrays are sorted in a non-increasing way this means that for each value in the first array. We can find the farthest value smaller than it using binary search.",
|
||||
"There is another solution using a two pointers approach since the first array is non-increasing the farthest j such that nums2[j] ≥ nums1[i] is at least as far as the farthest j such that nums2[j] ≥ nums1[i-1]"
|
||||
|
Reference in New Issue
Block a user