Skip to content

Commit 8c7ae1a

Browse files
author
Steve Sun
committed
refactor 18
1 parent 5f52afe commit 8c7ae1a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ gradlew
44
gradlew.bat
55
.DS_Store
66
build/
7+
out/
78

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
import java.util.Arrays;
55
import java.util.List;
66

7-
/**Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
7+
/**
8+
* 18. 4Sum
9+
*
10+
* Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target?
11+
* Find all unique quadruplets in the array which gives the sum of target.
812
913
Note: The solution set must not contain duplicate quadruplets.
1014

0 commit comments

Comments
 (0)