DSA Master
Home
Problems
123
Schedule
17 Patterns
Data Structures
PDF Guide
Back to Problems
Mark as Complete
Squares of a Sorted Array
#977
Easy
Two Pointers
O(n)
O(n)
Amazon
Google
Meta
View on LeetCode
Description
Approach
Solution
Related
Problem Description
Given an integer array sorted in non-decreasing order, return array of squares in sorted order.