← Amazon questions

Merge Sorted Array into Another

Filed under Amazon

Given two sorted arrays, A (size m) and B (size m+n), merge A into B such that B contains all elements in sorted order. Use O(m+n) time and O(1) auxiliary space.

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.