Problem
977. Squares of a Sorted Array
Java
1
1 | class Solution { |
Submission Detail
- 132 / 132 test cases passed.
- Runtime: 2 ms, faster than 72.59% of Java online submissions for Squares of a Sorted Array.
- Memory Usage: 41.6 MB, less than 24.34% of Java online submissions for Squares of a Sorted Array.
Two Pointer
1 | class Solution { |
Submission Detail
- 132 / 132 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Squares of a Sorted Array.
- Memory Usage: 41.2 MB, less than 73.53% of Java online submissions for Squares of a Sorted Array.
3
1 | class Solution { |
Submission Detail
- 132 / 132 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Squares of a Sorted Array.
- Memory Usage: 41.3 MB, less than 62.05% of Java online submissions for Squares of a Sorted Array.
4
1 | class Solution { |
Submission Detail
- 132 / 132 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Squares of a Sorted Array.
- Memory Usage: 41 MB, less than 85.39% of Java online submissions for Squares of a Sorted Array.