Skip to content

Commit d25be28

Browse files
refactor 905
1 parent 2282f6a commit d25be28

File tree

1 file changed

+0
-18
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-18
lines changed

src/main/java/com/fishercoder/solutions/_905.java

-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 905. Sort Array By Parity
5-
*
6-
* Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.
7-
*
8-
* You may return any answer array that satisfies this condition.
9-
*
10-
* Example 1:
11-
*
12-
* Input: [3,1,2,4]
13-
* Output: [2,4,3,1]
14-
* The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be accepted.
15-
*
16-
* Note:
17-
*
18-
* 1 <= A.length <= 5000
19-
* 0 <= A[i] <= 5000
20-
* */
213
public class _905 {
224
public static class Solution1 {
235
public int[] sortArrayByParity(int[] A) {

0 commit comments

Comments
 (0)