Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Sum of N elements in an M element arrayby abhay180 (Sexton) |
on Feb 02, 2020 at 07:56 UTC ( [id://11112264]=note: print w/replies, xml ) | Need Help?? |
Thanks Corion. The exact problem is about finding all the combinations. I find Math:Combinatorics useful as well.
Here is what i did to gather all 2-item combinations from N item array. I wasn't sure how i would do it for any M items.
In Section
Seekers of Perl Wisdom
|
|