Ad
Mathematics
Algorithms
Logic
Numbers
Data Types
Code
Diff
  • def average(g)
      g.empty? ? nil : g.sum.to_f/g.size
    end 
    • def average(g)
    • g==[] ? nil : g.sum.to_f/g.size
    • g.empty? ? nil : g.sum.to_f/g.size
    • end