Concept Flow - Merge Two Sorted Arrays Without Extra Space
Start with two sorted arrays
Compare last element of first array with first of second
If first array's last > second array's first
Yes
Swap these two elements
Sort both arrays individually
Repeat comparison until no swaps needed
Arrays merged without extra space
We repeatedly compare and swap elements between arrays, then sort them individually until both arrays are sorted together without extra space.
