Saturday, March 5, 2016

Interview Questions site

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)

No comments:

Post a Comment

Followers

Blog Archive