Problem
Java
One Pass
© Approach 3: One Pass (Simple Variant)
1 | class Solution { |
Submission Detail
- 366 / 366 test cases passed.
- Runtime: 1 ms, faster than 100.00% of Java online submissions for Monotonic Array.
- Memory Usage: 47.8 MB, less than 18.59% of Java online submissions for Monotonic Array.
my solution
1 | class Solution { |
Submission Detail
- 366 / 366 test cases passed.
- Runtime: 2 ms, faster than 31.40% of Java online submissions for Monotonic Array.
- Memory Usage: 46.9 MB, less than 18.59% of Java online submissions for Monotonic Array.