CodingReported in a candidate post, Sep 2022
Sorted Squares
Filed under HPE
The question
Given an array sorted in ascending order, return an array of the squares of the elements, also in ascending order.
No write-up yet. Related questions below have one.
Related HPE questions
Collected from public candidate posts and coding forums. Updated Nov 2026.