print the combinations


  • 0
    B

    Say we have n=10 and infinite supply of coins form 1 to n that is from 1 to 10. Then how can we print all the combinations

    example
    1+1+1... =10
    1+1+1...+2=10

    like this all the combinations(left hand side) should be printed. How can we do this ?


Log in to reply
 

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