未验证 提交 88fe6911 编写于 作者: R Rakshit Raj 提交者: GitHub

Update merge_sort.cpp (#1077)

On line 133 --- corrected the size argument so that the last element is not missed
上级 508ea020
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册