Approach hintTry it first, then revealHide
Sort the candidates, continue from i + 1 after choosing index i because each number is used once, and skip equal values at the same depth. Stop the loop once a candidate exceeds the remaining target.
Sort the candidates, continue from i + 1 after choosing index i because each number is used once, and skip equal values at the same depth. Stop the loop once a candidate exceeds the remaining target.