Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Ex. Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] 1.- ...
Ex. nums = [1,2,3,4] -> [24,12,8,6], nums = [-1,1,0,-3,3] -> [0,0,9,0,0] ...