From 88fe6911df36533919477e930f03c0a0d3d9a8a7 Mon Sep 17 00:00:00 2001 From: Rakshit Raj Date: Wed, 9 Sep 2020 22:21:07 +0530 Subject: [PATCH] Update merge_sort.cpp (#1077) On line 133 --- corrected the size argument so that the last element is not missed --- sorting/merge_sort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorting/merge_sort.cpp b/sorting/merge_sort.cpp index fc6d66af..8beb4e44 100644 --- a/sorting/merge_sort.cpp +++ b/sorting/merge_sort.cpp @@ -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; } -- GitLab