Top "Binary-search-tree" questions

A binary search tree is a data structure which consists of a root node with left and right child nodes.

converting a binary search tree to doubly linked list

This question was asked in a recent coding interview. Q : Given a binary tree, write a program to convert it …

binary-search-tree tree-traversal doubly-linked-list
How to do in-order traversal of a BST without recursion or stack but using parent pointers?

Is it possible to do an iterative in-order-traversal on a BST whose node has a parent pointer (the parent of …

algorithm binary-search-tree tree-traversal iteration inorder
What is the difference between std::set and std::map

I'm relatively new to c++ programming and was wondering if someone could help clarify a few questions for me. http://…

c++ map set binary-search-tree
Array to Binary Search Trees Quick

Given an array of integers, is there a way to convert it into Binary Search Tree (unbalanced) quickly? I have …

algorithm binary-search-tree
BST with duplicates

I know that, BST does not allow duplicates. For example, if I have a word "RABSAB". The Binary search tree …

java binary-tree binary-search-tree
std::map and binary search tree

I have read that std map is implemented using binary search tree data structure. BST is a sequential data structure (…

c++ data-structures stl binary-search-tree
Deletion procedure for a Binary Search Tree

Consider the deletion procedure on a BST, when the node to delete has two children. Let's say i always replace …

algorithm data-structures binary-tree binary-search-tree
Binary Tree in Objective-C

I am learning algorithms and data structures and to train I am trying to design and implement a binary tree …

objective-c ios binary-tree binary-search-tree
Find median in binary search tree

Write the implementation of the function T ComputeMedian() const that computes the median value in the tree in O(n) …

algorithm tree binary-search-tree median