30:00
Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.
1≤nums.length≤1041 \leq \text{nums.length} \leq 10^41≤nums.length≤104
−104≤nums[i]≤104-10^4 \leq \text{nums}[i] \leq 10^4−104≤nums[i]≤104
nums is sorted in non-decreasing order.
nums
Sort squares of 5 numbers using two pointers
-4
-1
0
3
10
_