More binary trees

Status
Not open for further replies.

Malyk

Ars Tribunus Angusticlavius
8,558
Subscriptor
Check out Can someone help me understand a Java binary tree. That thread has some info that you may find useful.

Basically, start at the root, compare what you want to insert with what is there. If it goes to the left of the root then go left and check again, continuing until you get to the end and then add a node at the end.

Mike
 
Status
Not open for further replies.