Square an array of sorted numbers
Anonymous
array.map(currentNumber => currentNumber*currentNumber) when negatives are involved: split negatives to their own array and then do a merge sort at the end [-1,-2,-3,3,5] -> [1,4,9] [9,25] <- merge sort
Check out your Company Bowl for anonymous work chats.