https://leetcode.com/problems/merge-sorted-array/
| 6 | * https://leetcode.com/problems/merge-sorted-array/ |
| 7 | */ |
| 8 | public class Sanghoo { |
| 9 | |
| 10 | public void merge(int[] nums1, int m, int[] nums2, int n) { |
| 11 | int index=0; |
| 12 | |
| 13 | for(int i=m; i<nums1.length; i++) { |
| 14 | nums1[i] = nums2[index++]; |
| 15 | } |
| 16 | |
| 17 | Arrays.sort(nums1); |
| 18 | } |
| 19 | |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected