mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Easy",
|
||||
"likes": 3915,
|
||||
"dislikes": 377,
|
||||
"likes": 3938,
|
||||
"dislikes": 379,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Merge Two Sorted Lists\", \"titleSlug\": \"merge-two-sorted-lists\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"title\": \"Squares of a Sorted Array\", \"titleSlug\": \"squares-of-a-sorted-array\", \"difficulty\": \"Easy\", \"translatedTitle\": null}, {\"title\": \"Interval List Intersections\", \"titleSlug\": \"interval-list-intersections\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
"exampleTestcases": "[1,2,3,0,0,0]\n3\n[2,5,6]\n3\n[1]\n1\n[]\n0\n[0]\n0\n[1]\n1",
|
||||
@@ -137,7 +137,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"1.3M\", \"totalSubmission\": \"3M\", \"totalAcceptedRaw\": 1310540, \"totalSubmissionRaw\": 3007613, \"acRate\": \"43.6%\"}",
|
||||
"stats": "{\"totalAccepted\": \"1.3M\", \"totalSubmission\": \"3M\", \"totalAcceptedRaw\": 1313665, \"totalSubmissionRaw\": 3013725, \"acRate\": \"43.6%\"}",
|
||||
"hints": [
|
||||
"You can easily solve this problem if you simply think about two elements at a time rather than two arrays. We know that each of the individual arrays is sorted. What we don't know is how they will intertwine. Can we take a local decision and arrive at an optimal solution?",
|
||||
"If you simply consider one element each at a time from the two arrays and make a decision and proceed accordingly, you will arrive at the optimal solution."
|
||||
|
Reference in New Issue
Block a user