It’s easy indeed.
Problem
Java
Two Pass
1 | class Solution { |
Submission Detail
- 285 / 285 test cases passed.
- Runtime: 1 ms, faster than 99.47% of Java online submissions for Sort Array By Parity.
- Memory Usage: 40.1 MB, less than 30.13% of Java online submissions for Sort Array By Parity.
In-Place
© Solution - Approach 3: In-Place
1 | class Solution { |
Submission Detail
- 285 / 285 test cases passed.
- Runtime: 0 ms, faster than 100.00% of Java online submissions for Sort Array By Parity.
- Memory Usage: 39.6 MB, less than 30.13% of Java online submissions for Sort Array By Parity.