Hi,

I have no1 to no30 product prices.

I want to calculate combination for 30 product prices

Suppose I have 30 different numbers..

I want to calculate their sum by using combination.

But combination should not repleted

i.e.

E.g

for 4 numbers...

[ 10 20 30 40]

I want to do like without repetition

10

20

30

40

10+20

10+30

10+40

20+30

20+40

30+40

10+20+30

10+20+40

10+30+40

20+30+40

so how to calculate 30 numbers in this way..without repetition

How to do that??

I think when i calculate sum without repetition for numbers it takes minimum time Or any algorithm or method to do it fast in minimum time??