From 8f7135a3250864622aa7cc5ae464f6c9331a824c Mon Sep 17 00:00:00 2001 From: Vishnu-M Date: Sun, 4 Oct 2020 11:57:09 +0530 Subject: [PATCH] Added Merge Sort --- algorithms/divide-and-conquer/mergesort.py | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 algorithms/divide-and-conquer/mergesort.py diff --git a/algorithms/divide-and-conquer/mergesort.py b/algorithms/divide-and-conquer/mergesort.py new file mode 100644 index 0000000..05e5a0b --- /dev/null +++ b/algorithms/divide-and-conquer/mergesort.py @@ -0,0 +1,26 @@ +def merge(left_subarray,right_subarray): + i,j = 0,0 + result = [] + + while i