
一、这题太简单就是直接平方,然后排序
class Solution(object):
    def sortedSquares(self, A):
        """
        :type A: List[int]
        :rtype: List[int]
        """
        for i in range(len(A)):
            A[i] = A[i] **2
        A.sort()
        return A时间最短的答案
class Solution(object):
    def sortedSquares(self, A):
        """
        :type A: List[int]
        :rtype: List[int]
        """
        if (A is None):
            return A
        
        return sorted([i*i for i in A])
    
        # square = [i**2 for i in A]
        # square.sort()
        # return square









