Tested on Yosemite. Should work on El Cap. Message me if it doesn't.
- You are tired of using vagrant
- You want to run guard
- You want use Sublime plugins (like RSpec or Guard plugins)
- You want your code to run faster in development
Tested on Yosemite. Should work on El Cap. Message me if it doesn't.
def mergsort(arr) | |
return arr if arr.length <= 1 | |
#puts (0..arr.length/2-1) # Left List | |
#puts (arr.length/2..arr.length-1) #Right List | |
leftarray = arr[0..arr.length/2-1] | |
rightarray = arr[arr.length/2..arr.length-1] | |
#middle = arr[arr.length/2-1] | |
#arr.each {|value| value < middle ? leftarray << value : rightarray << value} |