Skip to content

Latest commit

 

History

History

merge_sort

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Merge sort

Merge sort is a "divide and conquer" sorting element that recursively splits the input into two halves, sorts them, and then combines the two arrays. It is widely used for its efficiency and simple implementation.

The worst-case and average complexities are both O(n log n), making it one of the most efficient sorting algorithms. It is also one of the more efficient for sorting linked lists.

Visualization