题目描述: Given an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing order. Example : Input: [-,-,,,] Output: [,,,,] Example : Input: [-,-,,,] Output: [,,,,] Note: <= A.length…