Concept Flow - Merge Two Sorted Arrays Without Extra Space
Start with two sorted arrays A and B
Compare last element of A with first element of B
If A's last > B's first, swap them
Sort both arrays individually
Repeat until no swaps needed
Arrays merged without extra space
We repeatedly compare and swap elements between the two arrays to ensure all smaller elements are in the first array and larger in the second, then sort both arrays until fully merged.
