class Solution:
def sortedSquares(self, A: List[int]) -> List[int]:
A=[num*num for num in A]
A.sort()
return A
977. 有序数组的平方 (EASY)
最新推荐文章于 2022-02-09 17:20:06 发布
class Solution:
def sortedSquares(self, A: List[int]) -> List[int]:
A=[num*num for num in A]
A.sort()
return A