Squares of a Sorted Array at Uber
Easy73.6% acceptance
This problem has 87.5% frequency at Uber.
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 Uber Questions
Bus RoutesHardNumber of IslandsMediumConstruct Quad TreeMediumLongest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumText JustificationHard
View all Uber questions