Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 485 Bytes

File metadata and controls

32 lines (19 loc) · 485 Bytes

Mergesort

Question

Demonstrate the merge sort sorting algorithm in Python.

Solution

.. literalinclude:: ../../languages/python/algorithm_mergesort.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/algorithm_mergesort.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`algorithm_mergesort.py`
   * :python-better-explain:`algorithm_mergesort.rst`