Combinations That Sum to a Target

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

Given a list of distinct positive numbers and a target, find every combination that adds up to the target, where each number may be used any number of times. The same combination in a different order counts only once.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →