leetcode
977. Squares of a Sorted Array
Solution code
Time complexity: O(n)
Space complexity: O(1)