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 hints

Topics

Also asked at 18 companies


More Uber Questions

View all Uber questions