It is like if you generate 10 random number(5 8 7 2 3 5 2 6 8 1) then it should return all the subset whose sum is target number. If target number is 8 then it should return (8),(5 3),(7 1),(3 2 3),(1 5 2),(1 2 2 3).
.
Search found 2 matches
- Tue Nov 08, 2016 1:57 pm
- Forum: Common Lisp
- Topic: CLISP
- Replies: 3
- Views: 10114
- Sat Nov 05, 2016 10:52 pm
- Forum: Common Lisp
- Topic: CLISP
- Replies: 3
- Views: 10114
CLISP
Hey I am beginner and just started to learn Clisp. Could someone please help me to create array of random integer number and find pair of numbers(from array) whose sum is equal to target number and also print their indices. Suppose if we create array of 10 number and target number is 8 then pair sho...