Anishluke92 / RubySolution

Problem solving using Ruby programming language
0 stars 1 forks source link

Largest product of 3 integers #118

Open danielpaul opened 3 years ago

danielpaul commented 3 years ago

This problem was asked by Facebook.

Given a list of integers, return the largest product that can be made by multiplying any three integers.

For example, if the list is [-10, -10, 5, 2], we should return 500, since that's -10 -10 5.

You can assume the list has at least three integers.