Leetcode 977. Squares of a Sorted Array

class Solution(object):
    def sortedSquares(self, A):
        """
        :type A: List[int]
        :rtype: List[int]
        """
        return sorted([x * x for x in A])
原文地址:https://www.cnblogs.com/zywscq/p/10674644.html