Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.


Code for Merge Sort


# You may recognize this code at the top by now; it just loads a file
# full of numbers into a list.
import sys
from load import load_numbers

numbers = load_numbers(sys.argv[1])

# Let's define a recursive merge sort function. As usual, it takes
# the list or sub-list that we want it to sort.
def merge_sort(values):
  # Our base case is the same as with Qui...