mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Medium",
|
||||
"likes": 495,
|
||||
"likes": 496,
|
||||
"dislikes": 9,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Two Furthest Houses With Different Colors\", \"titleSlug\": \"two-furthest-houses-with-different-colors\", \"difficulty\": \"Easy\", \"translatedTitle\": null}]",
|
||||
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"19.5K\", \"totalSubmission\": \"39.7K\", \"totalAcceptedRaw\": 19472, \"totalSubmissionRaw\": 39703, \"acRate\": \"49.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"19.5K\", \"totalSubmission\": \"39.8K\", \"totalAcceptedRaw\": 19515, \"totalSubmissionRaw\": 39780, \"acRate\": \"49.1%\"}",
|
||||
"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