Input1: A list of distinct numbers,L1
Input2: A single number, T

Output all combinations of L1 that can yield T using +,-,*,/.

eq:
L1=[4,5,2,3] and T=6. Output: [2*3],[2+4],[5+3-2],[3*4/2] ..... all other
combinations.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to