fork download
  1. def find_2nd_largest(arr)
  2. arr.uniq.select{|v| v.is_a?(Integer) }.sort.reverse()[1]
  3. end
Success #stdin #stdout 0.05s 9608KB
stdin
Standard input is empty
stdout
Standard output is empty