mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-21 21:16:45 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"11.7K\", \"totalSubmission\": \"17.9K\", \"totalAcceptedRaw\": 11674, \"totalSubmissionRaw\": 17881, \"acRate\": \"65.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"11.7K\", \"totalSubmission\": \"17.9K\", \"totalAcceptedRaw\": 11680, \"totalSubmissionRaw\": 17910, \"acRate\": \"65.2%\"}",
|
||||
"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