Squares of a Sorted Array
Given a sorted array of integers, return a sorted array of their squares.
Statement
Given an integer array, sorted in non-decreasing order, return an array of the squares of each number, sorted in non-decreasing order.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.