- Work Hotel
- We arrive Tuesday so won't have a full day
I hereby claim:
To claim this, I am signing this object:
%S#\[(.*?)\]\(https://github.com/byuoitav/team/wiki/(.*?)\)#\[\[\1|\2\]\]#g |
// https://www.interviewcake.com/question/javascript/stock-price | |
function getMaxProfit(stockPrices) { | |
var lowestPrice = stockPrices[0]; | |
var maxProfit = stockPrices[1] - lowestPrice; | |
for (var i = 1; i < stockPrices.length; i++) { | |
var difference = stockPrices[i] - lowestPrice; | |
if (difference > maxProfit) { |