Combination Sum, is a LeetCode problem. In this post we will see how we can solve this challenge in Python

Problem Description

Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.

The same repeated number may be chosen from C unlimited number of times.


All numbers (including target) will be positive integers. The solution set must not contain duplicate combinations.

For example, given candidate set [2, 3, ....

You can find the full details of the problem Combination Sum at LeetCode

Solution: Please check the snippet for the solution.

This solution originally posted at: Github by @kamyu104