English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

it's depends on the kinds of binary search tree

but i think is go to insert the first number at the head and second you will be make if statement , if bigger go to right , if small go left ... and so on

2006-10-30 21:53:25 · answer #1 · answered by AboYasser 1 · 0 0

Your first insertion will be the root node.
now check if the next node is greater or less than the previous number. Depending on this you will insert the number into left child or right child. You have to carry this procedure.

2006-10-31 06:44:39 · answer #2 · answered by manoj Ransing 3 · 0 0

fedest.com, questions and answers