Skip to content

977-squares-of-a-sorted-array

DevGod
DevGod
Vtuber
/**
* @param {number[]} nums
* @return {number[]}
*/
var sortedSquares = function(nums) {
return nums.map((el)=>el**2).sort((a,b)=>a-b);
};