Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Squares of a Sorted Array
Bookmark
Input
Example 1
Example 2
All Negative
Custom
nums
=
[-4, -1, 0, 3, 10]
nums
0
1
2
3
4
-4
-1
0
3
10
result
0
1
2
3
4
algo
master
.
io
Step:
Start: Compute squares of sorted array [-4, -1, 0, 3, 10]
0 / 12
Input
Example 1
Example 2
All Negative
Custom
nums
=
[-4, -1, 0, 3, 10]
0 / 12
nums
0
1
2
3
4
-4
-1
0
3
10
result
0
1
2
3
4
algo
master
.
io
Step:
Start: Compute squares of sorted array [-4, -1, 0, 3, 10]