https://www.interviewcake.com/
Sample question: write code for getMaxProfit
var stockPricesYesterday = [10, 7, 5, 8, 11, 9];
getMaxProfit(stockPricesYesterday);
// returns 6 (buying for $5 and selling for $11)
Sample question: write code for getMaxProfit
var stockPricesYesterday = [10, 7, 5, 8, 11, 9];
getMaxProfit(stockPricesYesterday);
// returns 6 (buying for $5 and selling for $11)
No comments:
Post a Comment