Sorting Algorithms

Merge sort

Merge sort is O(n log(n)).

The steps are:

Quicksort

Quicksort is O(n log(n)). It is also a destructive algorithm. It mutates the input list.

The steps are: