Update merge_sort.cpp (#1077)

On line 133 --- corrected the size argument so that the last element is not missed
This commit is contained in:
Rakshit Raj
2020-09-09 22:21:07 +05:30
committed by GitHub
parent 508ea020d3
commit 88fe6911df

View File

@@ -110,7 +110,7 @@ int main() {
}
mergeSort(arr, 0, size - 1);
std::cout << "Sorted array : ";
show(arr, size - 1);
show(arr, size);
delete[] arr;
return 0;
}