The merge sort is popular for two reasons: 1) its worst case is O(n log n), and 2) it has a property known as stable. Like all sorting algorithms, it has downsides. Here the downside requiring O(n) ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.