Merge Sort failing at deletion (Thread 1: EXC_BAD_ACCESS code 2 )
Advertisements I know I should be using vectors, but I want to get better at dynamically allocating arrays. I’m not sure where I went wrong. I’m creating a new array and deleting it. void Merge(int *arr,int begin, int mid, int end){ int*arrB = new int[mid – begin + 1]; int i = begin; int j… Read More Merge Sort failing at deletion (Thread 1: EXC_BAD_ACCESS code 2 )