Skip to content

Instantly share code, notes, and snippets.

@jaredhabeck
Created June 9, 2015 20:14
Show Gist options
  • Save jaredhabeck/a681d1194c701137c564 to your computer and use it in GitHub Desktop.
Save jaredhabeck/a681d1194c701137c564 to your computer and use it in GitHub Desktop.
def merge_sort(array_a, array_b)
(array_a + array_b).sort
end
merge_sort([3,1,7,5,9], [4,2,6,8,0])
# => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment