Can somebody clarify the problem?


  • 0
    G

    The problem says "the same repeated number could be used unlimited times", which means the non-same repeated numbers can't be reused. It also says no duplicate compbinations allowed.

    However, given the test case
    [2,2,2,3]
    5

    The judge gives answer[[2,3],[2,3],[2,3]]. Is this correct?


  • 1
    W

    Problem says, given a SET.

    A set does not contain duplicates. So your test case is invalid.

    Your test case is valid for Combinational Sum II, where it says "given a collection...".


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.