← Flipkart questions

Merge elements into a sorted array with empty slots

Filed under Flipkart

You are given two sorted arrays: array A of size m+n with only m elements populated at the beginning and n empty slots at the end, and array B of size n. Merge B into A in sorted order.

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

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