1. How I sloved

    I squared each number and put it in a sorted list.

2. Code

class Solution:
    def sortedSquares(self, A: List[int]) -> List[int]:
        num_squares = []
        for e in A:
            num_squares.append(e*e)
        return sorted(num_squares)
        # return sorted(list(map(lambda x: x*x, A)))

3. Result

        Runtime : 200 ms(96.64%), Memory usage : 16 MB(87.74%)
        (Runtime can be different by a system even if it is a same code.)

Check out the my GitHub repo for more info on the code. If you have questions, you can leave a reply on this post.