can someone please help me with this question
the following is what i want to happen but i cant figure out how to do it...
?- list2tree([7, 5, 1, 3, 6, 9] , T).
T = bst(7, bt(5, bst(1, nil, bst(3, nil, nil)), bst(6, nil, nil)), bst(9, nil, nil));
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.