We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2744e3a commit c66fc97Copy full SHA for c66fc97
problems/closest-sum/problem.txt
@@ -0,0 +1,9 @@
1
+Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target.
2
+Return the sum of the three integers.
3
+You may assume that each input would have exactly one solution.
4
+
5
+Example:
6
+given array S = {-1 2 1 -4},
7
+and target = 1.
8
9
+The sum that is closest to the target is 2. (-1 + 2 + 1 = 2)
0 commit comments