Skip to content

Instantly share code, notes, and snippets.

View tyleralves's full-sized avatar

Tyler Alves tyleralves

  • Appfolio
  • South Lake Tahoe, CA
View GitHub Profile
testUnsorted = [7,0,2,1,5,9,12,3,19]
def mergeSort(unsorted)
# Split array into two halves
# Int division (ie: 9/2 = 4)
if unsorted.length <= 1
return unsorted
end