Write a procedure to find all ordered triples of distinct positive integers
less than or equal to a given integer
that sum to a given integer
There are no comments yet.
You must log in to post a comment.Login
(check-equal? (make-triple-sum 4 6) '((3 2 1))) (check-equal? (make-triple-sum 3 6) '((3 2 1))) (check-equal? (length (make-triple-sum 9 9)) 3)