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 hints

Topics

Also asked at 18 companies


More Instacart Questions

View all Instacart questions