Fill This Form To Receive Instant Help
Homework answers / question archive / Please use only Prolog for this question
Please use only Prolog for this question.
The question is:
Write a procedure for bintree_sum/2 that takes two arguments, Tree and Sum, in that order. The former argument is input, the latter output or input. Sum should be unified to the sum of the keys of the nodes in Tree.