Binary Search Tree
// Node
private class TreeNode
{
private Key key;
private Value val;
private Node left, right;
public Node(Key key, Value val)
{
this.key = key;
this.val = val;
}
}void traverse(TreeNode root) {
// The manipulation required in the root node should be written here.
// Other things will be resolved by the framework.
traverse(root.left);
traverse(root.right);
}Identical Binary trees ?

Compliance checking of BST

Lookup function in BST
Deletion function in BST



Floor in BST
οΏ½Subtree Counts
Rank of the Node
Traversal
Inorder Traversal
Pre Order Traversal
Post Order Traversal
Level Order Traversal
Zig Zag Traversal
Last updated