Skip to content
advanced

Challenge: combinations that sum to a target

Implement this from the stub. Hidden tests grade the behaviour you write, not the comments you leave.

Challenge: Combinations That Sum to a Target

export function combinationSum(candidates: number[], target: number): number[][] {
  // Your implementation here
}
challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code