Community Problem

Squares of a Sorted Array

Difficulty: Easy

Return the squares of a sorted integer array, also sorted, in O(n) time using a two-pointer merge from the ends.