initial commit
Write initialize method
Write first test
Write the slowest way first
Write 2 more tests to be more explicit
Change test for stock values in an array, not a hash
Update best_profit method and initialize for getting an array instead of a hash
Increase efficiency by only looking ahead in the array on the second iteration, not at the whole array
No longer need mins2 now that we are only looking at a part of the array for second iteration
As you iterate through the array, any price that is higher than an earlier price does not need to be considered as a buy price
Don't need to check an element as a buy price even if it is the same as a previous low point as long as it's not the first value in the array because of how low_price is set
Further optimize after reading interview cake solution