← OYO questions

Merge one array into another

Filed under OYO

Given two sorted integer arrays `nums1` and `nums2`, merge `nums2` into `nums1` as one sorted array in-place. `nums1` has an initial length of `m + n`, where the first `m` elements contain the sorted…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.