Skip to content

Commit bb37ee2

Browse files
refactor 954
1 parent 6cd2b75 commit bb37ee2

File tree

1 file changed

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

1 file changed

+0
-28
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,6 @@
44
import java.util.HashMap;
55
import java.util.Map;
66

7-
/**
8-
* 954. Array of Doubled Pairs
9-
*
10-
* Given an array of integers A with even length, return true if and only if it is possible to reorder it
11-
* such that A[2 * i + 1] = 2 * A[2 * i] for every 0 <= i < len(A) / 2.
12-
*
13-
* Example 1:
14-
* Input: [3,1,3,6]
15-
* Output: false
16-
*
17-
* Example 2:
18-
* Input: [2,1,2,6]
19-
* Output: false
20-
*
21-
* Example 3:
22-
* Input: [4,-2,2,-4]
23-
* Output: true
24-
* Explanation: We can take two groups, [-2,-4] and [2,4] to form [-2,-4,2,4] or [2,4,-2,-4].
25-
*
26-
* Example 4:
27-
* Input: [1,2,4,16,8,4]
28-
* Output: false
29-
*
30-
* Note:
31-
* 0 <= A.length <= 30000
32-
* A.length is even
33-
* -100000 <= A[i] <= 100000
34-
* */
357
public class _954 {
368
public static class Solution1 {
379
public boolean canReorderDoubled(int[] A) {

0 commit comments

Comments
 (0)