binary-search-tree
search a Binary search tree
I am trying to find a name within a key. I think it is retrieving it fine. however, its coming up as not found. maybe my code is wrong somewhere?[详细]
2022-12-13 12:56 分类:问答How to calculate the depth of a binary search tree
I would like to calculate the summation of the depths of each node of a Binary 开发者_如何学JAVASearch Tree.[详细]
2022-12-13 12:29 分类:问答Calculate the depth of a binary search tree?
I am having difficulty calculat开发者_运维问答ing the summation of depths [the sum of the individual depths for all children of the root] for a given BST. I have the total number of nodes for the tree[详细]
2022-12-13 12:23 分类:问答How can I create the tree?
I\'m trying to make a BST and need to print it inorder, postorder, and preorder. The thing am not sure about is how to create this tree in my main() function.[详细]
2022-12-13 07:42 分类:问答Binary Search Tree C++
Im a little confused. Im wondering if an array based Binary Search tree is implemented this way? void BST::insert(item &items, const data & aData )[详细]
2022-12-12 01:59 分类:问答How does an insert sort for an array BST work?
I\'ve tried to do it recursively..The parent integer varaible would is like i, conforming to the formula, 2*i +1 for leftChild\'s and 2*i +2 for the right.[详细]
2022-12-11 22:58 分类:问答Im stuck with filling my Array Based BST in C++
Im trying to build an array based, "Binary Search Tree" by following the algorithm here. Using the algorithm I came up with the following code:[详细]
2022-12-11 04:54 分类:问答java binary search tree
I hav开发者_Python百科e a question about how would I remove a child from a node (root)?Since I can\'t call remove, if I make the child null, will the children of that child move up? Like, would I just[详细]
2022-12-10 02:53 分类:问答dealing with duplicates in a bst
My bst has to be able to cope with duplicate entries. Does anyone have any strategies for how to go about this that doesn\'t require excessive amounts of code?[详细]
2022-12-08 18:21 分类:问答Leetcode question 700, search in a tree problem. my code keeps returning an empty array
even though I have appended item into my array while recursively going through the tree, my code returns an empty array every time I try to run it.[详细]
2022-12-07 22:14 分类:问答