(int arr[], int l, int r)
| 49 | // Main function that sorts arr[l..r] using |
| 50 | // merge() |
| 51 | void sort(int arr[], int l, int r) |
| 52 | { |
| 53 | if (l < r) { |
| 54 | // Find the middle point |
| 55 | int m =l+ (r-l)/2; |
| 56 | |
| 57 | // Sort first and second halves |
| 58 | sort(arr, l, m); |
| 59 | sort(arr, m + 1, r); |
| 60 | |
| 61 | // Merge the sorted halves |
| 62 | merge(arr, l, m, r); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | /* A utility function to print array of size n */ |
| 67 | static void printArray(int arr[]) |
no test coverage detected