Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f6876f

Browse files
jiya10208realstealthninja
andauthored
Update merge_sort.cpp (TheAlgorithms#2818)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
1 parent c26eea8 commit 3f6876f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎sorting/merge_sort.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
* Merge Sort is an efficient, general purpose, comparison
1212
* based sorting algorithm.
1313
* Merge Sort is a divide and conquer algorithm
14-
*
14+
* Time Complexity: O(n log n)
15+
* It is same for all best case, worst case or average case
16+
* Merge Sort is very efficient when for the small data.
17+
* In built-in sort function merge sort along with quick sort is used.
1518
*/
1619
#include <iostream>
1720

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /