Skip to content

Commit ac9f464

Browse files
committed
No idea on 39
1 parent a2344c9 commit ac9f464

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)