Sorted Squares of Two Sorted Arrays
Given two integer arrays a and b, each sorted in ascending order, return an ascending array containing the squares of all elements of both arrays.
The base version has non-negative values, e.g. `...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
