Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

put a list into a tree

Status
Not open for further replies.

korotana

Programmer
Nov 1, 2007
1
CA
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));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top