Modified array_problems

I would rewrite this to 3 lines. This is a little confusing. If you want to keep it at 1 line, I would write it as:
array.each { |i| max = i.to_i if i.to_i > max }