Squares of a Sorted Array

#977
Easy
Two Pointers
O(n)
O(n)
Amazon
Google
Meta
View on LeetCode

Problem Description

Given an integer array sorted in non-decreasing order, return array of squares in sorted order.