Squares of a Sorted Array at Instacart
Easy73.6% acceptance
This problem has 87.5% frequency at Instacart.
Problem Description
Given an integer array `nums` sorted in **non-decreasing** order, return _an array of**the squares of each number** sorted in non-decreasing order_.
Read full problem and hintsTopics
Also asked at 18 companies
More Instacart Questions
Check if Every Row and Column Contains All NumbersEasyFind First and Last Position of Element in Sorted ArrayMediumAverage Waiting TimeMediumFind the Length of the Longest Common PrefixMediumMaximum Number of Events That Can Be AttendedMedium
View all Instacart questions