mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-03 10:39:42 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user