Sha256: f7f3af897b6b8e0d4b747eaa8fd1f987ea28c4dfafca81ab400719029a9c2cd5

Contents?: true

Size: 164 Bytes

Versions: 1

Compression:

Stored size: 164 Bytes

Contents

def min_sum(array, number)
  min_val = array.min
  return (min_val * (number - 1))
end

array = [23, 56, 12, 63, 8]
number = array.count
puts min_sum(array, number)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
algoritmos-0.1.0 lib/MinimumSum.rb