leetcode.jp 博客
本网站所有文字及图片内容均来自网络,每周定时更新,仅供个人学习与研究,请勿用于商业用途。谢谢合作。

88. Merge Sorted Array

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

Note:

Example:

Input:
nums1 = [1,2,3,0,0,0], m = 3
nums2 = [2,5,6],       n = 3

Output: [1,2,2,3,5,6]

Difficulty:

Easy

Lock:

Normal

Company:

Adobe Amazon Apple Baidu Bloomberg Cisco eBay Expedia Facebook Goldman Sachs Google IBM Indeed Intel LinkedIn Microsoft Oracle Quip (Salesforce) Tableau Uber VMware Yahoo Yandex