/********************
** Write some code, that will flatten an array
** of arbitrarily nested arrays of integers
** into a flat array of integers.
** e.g. [[1,2,[3]],4] -> [1,2,3,4]
************************/
var answer = [];
function maxStockProfit(pricesArr) {
const Price = {
'buy': 0,
'sell': 0,
'change': true
};
OlderNewer