We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I wrote the code in c, (doing merge sort and counting the number of swaps required while merging sub arrays) I am allocating memory for sub arrays using malloc and tried almost everything I could but cant get rid of the segmentation fault(core dumped). Help!!!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Insertion Sort Advanced Analysis
You are viewing a single comment's thread. Return to all comments →
I wrote the code in c, (doing merge sort and counting the number of swaps required while merging sub arrays) I am allocating memory for sub arrays using malloc and tried almost everything I could but cant get rid of the segmentation fault(core dumped). Help!!!