Leetcode 977. Squares of a Sorted Array
Feb 20, 2024 · 2 min read · Given an integer array nums sorted in non-decreasing order, return an array ofthe squares of each numbersorted in non-decreasing order. Example 1: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] Explanation: After squaring, the array becomes [16,...
Join discussion