Skip to content

Commit ed62f3d

Browse files
refactor 561
1 parent a538feb commit ed62f3d

File tree

1 file changed

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

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* Created by fishercoder on 4/23/17.
5-
*/
6-
73
import java.util.Arrays;
84

9-
/**
10-
* Array Partition I:
11-
*
12-
*
13-
* Given an array of 2n integers, your task is to group these integers into n pairs of integer,
14-
* say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible.
15-
16-
Example 1:
17-
Input: [1,4,3,2]
18-
19-
Output: 4
20-
Explanation: n is 2, and the maximum sum of pairs is 4.
21-
22-
Note:
23-
n is a positive integer, which is in the range of [1, 10000].
24-
All the integers in the array will be in the range of [-10000, 10000].*/
255
public class _561 {
266

277
public static class Solution1 {

0 commit comments

Comments
 (0)