S
skishorev
I am implementing a binary search tree. But, Here some of the nodes i
need to maintain a backup of .
This backup i am maintaining a Linked Lists.
Example: By using 1 to 100 numkbers i need to construct a binary
search tree.
In this some numbers
1 4 5 7 8 50 (random numbers) to be in one linked
list
2 3 8 9 (random numbers other than linked
list1) to be in second linked list.
At this time , How to i implement the same? How to i give the node
reference to both linked list and binary serach tree?
If you know can you please help me.
need to maintain a backup of .
This backup i am maintaining a Linked Lists.
Example: By using 1 to 100 numkbers i need to construct a binary
search tree.
In this some numbers
1 4 5 7 8 50 (random numbers) to be in one linked
list
2 3 8 9 (random numbers other than linked
list1) to be in second linked list.
At this time , How to i implement the same? How to i give the node
reference to both linked list and binary serach tree?
If you know can you please help me.