📜  合并排序与快速排序 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:47.377000             🧑  作者: Mango

代码示例1
Efficiency :

Merge sort is more efficient and works faster than quick sort in case of larger array size or datasets.
whereas
Quick sort is more efficient and works faster than merge sort in case of smaller array size or datasets.
Preferred for :

Quick sort is preferred for arrays.
whereas
Merge sort is preferred for linked lists.