eLobato/ruby-algorithm-problems — pull request #3 by 404pnf (2013-09-11 03:43:06+00:00)
Title: find_min: nil can't be compared

This won't work since nil can't be compared

'''Ruby
def find_min(array)
min = nil
array.each do |element|
if (element < min) || (min == nil)
min = element
end
end
min
end
'''