Skip to content

Instantly share code, notes, and snippets.

@pnewhook
Created March 13, 2013 17:57
Show Gist options
  • Save pnewhook/5154539 to your computer and use it in GitHub Desktop.
Save pnewhook/5154539 to your computer and use it in GitHub Desktop.
def HalfHeartedMergeSort(list):
if len(list) < 2:
return list
pivot = int(len(list)/2)
a = HalfHeartedMergeSort(list[:pivot])
b = HalfHeartedMergeSort(list[pivot:])
#UMMMMM
return [a,b]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment