diff options
Diffstat (limited to '')
-rw-r--r-- | algorithms/impl/merge_sort.py (renamed from merge_sort.py) | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/merge_sort.py b/algorithms/impl/merge_sort.py index 6d5403d..9fa96ec 100644 --- a/merge_sort.py +++ b/algorithms/impl/merge_sort.py @@ -27,3 +27,8 @@ def merge_sort(xs): if __name__ == '__main__': import sys print(merge_sort(list(map(int, sys.argv[1:])))) +else: + from algorithms.algorithm import SortingAlgorithm + _ALGORITHMS = [ + SortingAlgorithm('merge_sort', 'Merge sort', merge_sort), + ] |