Merging Two Sorted Arrays

This diagram illustrates the process of merging two sorted arrays, nums1 and nums2, into a single sorted array. The final sorted array is stored in nums1.