Arrays

Merge Sorted Arrays

easy
You are given two integer arrays `nums1` and `nums2`, sorted in non-decreasing order, and integers `m` and `n` representing the number of elements in each. Merge `nums2` into `nums1` as one sorted array. `nums1` has length `m + n` with trailing zeros as buffer. Return `nums1`.
Hint steps(0/2 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.