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 a2344c9 commit ac9f464Copy full SHA for ac9f464
coding/leetcode/39-combination-sum.js
@@ -0,0 +1,5 @@
1
+var combinationSum = function(candidates, target) {
2
+ candidates = candidates.map(n => parseInt(n));
3
+ candidates.sort((a,b) => a-b); // increasing order makes precomputation easier
4
+};
5
+
0 commit comments