0
1.5kviews
Program in "C" to implement merge sort.
1 Answer
0
8views

enter image description here

 // Merge sort in C

#include <stdio.h>

// Merge two subarrays L and M into arr
void merge(int arr[], int p, int q, int r) {

  // Create L ← A[p..q] and M ← A[q+1..r]
  int n1 = q - p + 1;
  int n2 = r - q;

  int …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.