'Python, Pick numbers, with a given total sum
[[-1, 2, 3], [4, 2, 1], [-2, 6, 4]]
For example I have this two dimensional array, and I need to pick the combination of numbers (one from each sublist) that in total give some number, let's say -1, so the right numbers will be -1 from the first, 2 from the second and -2 from the third. What is the fastest and easiest way to do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
