Practice coding question


  1. Program to Insertion in Binary Search Tree (BST) in C++.
  2. Program to Deletion in Binary Search Tree (BST) in C++.
  3. Program to Inorder Traversal in Binary Tree (with recursion) in C++
  4. Program to Inorder Traversal in Binary Tree Iteratively (without recursion)
  5. Program to Preorder Traversal in Binary Tree (with recursion) in C++
  6. Preorder Traversal in Binary Tree Iteratively (without recursion) in C++
  7. Program to Postorder Traversal in Binary Tree (using recursion) in C++
  8. Program to Reverse Inorder Traversal in Binary Tree (with recursion) in C++
  9. Program to Reverse Preorder Traversal in Binary Tree (with recursion) in C++
  10. Program to Reverse Postorder Traversal in Binary Tree (using recursion) in C++
  11. Program to Construct BST from Given Preorder Traversal
  12. Program to Construct a binary search tree from a sorted linked list
  13. Program to Construct a binary search tree from a sorted 1-D array in C++
  14. Program to Convert given Binary Search Tree to a Greater Sum Tree in C++
  15. Program to Convert given Binary Search Tree to a Smaller Sum Tree in C++
  16. Program to Construct all possible BSTs with keys 1 to N in C++
  17. Program to Convert a Binary Search Tree into a min-heap in C++
  18. Construct BST from level order traversal in C++
  19. Program to Convert an unbalanced BST to a balanced BST in C++
  20. Program to Check if the given array can represent the Preorder Traversal of a Binary Search Tree in C++
  21. Program to Kth Minimum in a Binary Search Tree in C++
  22. Program to Kth Maximum in a Binary Search Tree in C++
  23. Program to Check if given sorted subsequence exits in the Binary Search Tree or Not in C++
  24. Program to Check if the Binary Search Tree contains a dead end in C++
  25. Program to Check if the given array can represent the inorder traversal of a BST in C++
  26. Program to Check if two BSTs have the same set of elements or not in C++
  27. Program to Largest Element in the BST less than or Equal to N in C++
  28. Program to Distance between two nodes in a BST in C++