Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Combination Sum

Difficulty: Medium

Acceptance: 75.00%

Points: 30.00

You are given an array of distinct positive integers and a target value target. Your task is to find all unique combinations of elements whose sum equals the target.

You may use the same element multiple times. Return all valid combinations. The order of elements inside a combination does not matter.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 1 = n = 20
  • 1 = arr[i] = 50
  • 1 = target = 100
Companies:
Microsoft
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.