Daily challenge for 2025-09-03
246. Squares of a Sorted Array
Write a function solve that returns a non-decreasing array of the squares of each number from the non-decreasing input array nums.
Example:Input: nums = [-4,-1,0,3,10]Output: [0,1,9,16,100]
Run this challenge interactively in Python or JavaScript when the app loads.