/stock_picker

An implementation of stock_picker method in Ruby

Primary LanguageRuby

Stock Picker

An implementation of stock picker in Ruby

The method stock_picker accepts an array of prices as argument. It then returns an array containing the pair of days that would yield the best day to buy and the best day to sell.