Search⌘ K
AI Features

Squares of a Sorted Array

Squares of a Sorted Array provides a non-decreasing integer array, possibly containing negative values. Return a new array of every number's square in sorted order.

Statement

You are given an integer array, nums, sorted in non-decreasing order. Your task is to return a new array ...