Arrays have a couple methods to get the minimum and maximum. Three common ones are .min, .max, .minmax.
How to get the min and max from an Array (Ruby)
How to get the min and max from an Array…
How to get the min and max from an Array (Ruby)
Arrays have a couple methods to get the minimum and maximum. Three common ones are .min, .max, .minmax.