I have a requirement where i have to find a list of combinations where the sum =180. I have an array of intergers and have to pick up the elements from this array only.
For example : Array = {30,45,60,15,60,30} now i as an output should get - 60,60,30,30 or 45,15,60,30,30 or 45,15,60,60
I am trying various approaches but its failing in one or the other scenario. Please suggest implementation in C#.
Please provide inputs.
Thanks
Sub set problems solutions can be found everywhere on the net or stack overflow:
Try this:
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments