binary-search-tree
Basic BST Question From a New Programmer
Given the data set (8, 1, 6, 9, 3, 5, 4, 7) I drew the following binary search tree: 8 / \\ 19 \\ 6 / \\ 37[详细]
2023-02-20 12:22 分类:问答In Order Successor in Binary Search Tree
Given a node in a BST, how does one find the ne开发者_开发知识库xt higher key?The general way depends on whether you have a parent link in your nodes or not.[详细]
2023-02-20 07:21 分类:问答Binary Search Tree Visualisation In Java
Hi I am currently doing the testing phase of my project(Algorithm Visualization Tool). I am getting a problem with the delete method of my BST.[详细]
2023-02-19 07:09 分类:问答BST with a recursion and given structures
I have to code some methods for a BST and I have some problems, let me explain. I have the following structures :[详细]
2023-02-19 01:23 分类:问答Does anyone see what is causing a segmentation fault in this BST code?
#include <iostream> using namespace std; #define YES 1 #define NO 0 class tree { private: public: struct leaf[详细]
2023-02-18 05:02 分类:问答Bug when constructing bst from preorder array and inorder array
#include <iostream> using namespace std; #define YES 1 #define NO 0 class tree { private: struct leaf {[详细]
2023-02-18 04:51 分类:问答Why does this search function return a pointer to a pointer?
#ifndef _BST_H_ /* Returns negative (left<right), zero (left==right), or positive (left>right). */[详细]
2023-02-17 21:14 分类:问答Weird error in binary search tree [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-02-17 20:24 分类:问答Java BinarySearchTrees: input key return value(lookup)
I\'m trying to implement a database interface using BSTs. I have an inner class BTSEntry which represents a node with variables key, value and left/right nodes.[详细]
2023-02-16 08:54 分类:问答Binary Search Tree PostOrder and PreOrder Traversals are wrong
I\'m working on this homework where I need to print my binary search tree in preorder, postorder, and inorder. However, it seems like only my inorder method is working.I have used the following test c[详细]
2023-02-16 06:51 分类:问答