public void merge(int[] nums1, int m, int[] nums2, int n){ int i = m - 1; // index of the last element in the sorted of nums1 int j = n - 1; // index of the last element in nums2 int k = m + n -1; // ...