Skip to content

Instantly share code, notes, and snippets.

View samvschantz's full-sized avatar
🤙

Sam Schantz samvschantz

🤙
View GitHub Profile
function stocks(priceArray){
var sellArray = []
var buyPriceArray = []
for (i = 0; i < priceArray.length - 1; i++){
buyPriceArray.push(priceArray[i])
}
var sellPriceArray = []
for (i = 1; i < priceArray.length; i++){