Skip to content

Commit a75211e

Browse files
feat: solve Striver SDE Sheet problem 51 - Combination Sum
1 parent 8af191c commit a75211e

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Combination Sum (Medium)
2+
3+
**Problem ID:** 39
4+
**Problem Number:** 51
5+
**Link:** https://leetcode.com/problems/combination-sum
6+
7+
## Problem Statement
8+
9+
Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order.
10+
11+
The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different.
12+
13+
The test cases are generated such that the number of unique combinations that sum up to target is less than ...
14+
15+
## Solutions
16+
17+
- Python: `solution.py`
18+
- Java: `solution.java`
19+
- JavaScript: `solution.js`
20+
21+
**Note:** Solutions need to be implemented.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Solution for Combination Sum
2+
// Problem ID: 39
3+
// Link: https://leetcode.com/problems/combination-sum
4+
5+
class Solution {
6+
// TODO: Implement solution
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Solution for Combination Sum
2+
// Problem ID: 39
3+
// Link: https://leetcode.com/problems/combination-sum
4+
5+
/**
6+
* TODO: Implement solution
7+
*/
8+
var solve = function() {
9+
// Implementation needed
10+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Solution for Combination Sum
2+
# Problem ID: 39
3+
# Link: https://leetcode.com/problems/combination-sum
4+
5+
class Solution:
6+
def solve(self):
7+
# TODO: Implement solution
8+
pass

0 commit comments

Comments
 (0)