← Amazon questions

Merge two sorted arrays in-place

Filed under Amazon · Also reported at Citrix

You are given two sorted integer arrays nums1 and nums2, where nums1 has a size of m + n, with the first m elements denoting elements to be merged, and the last n elements set to 0 and to be ignored…

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 Amazon questions

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