Problem Statement: Given below is a binary tree. The task is to print the top view of the binary tree.
Continue readingCategory: Binary Tree
Right/Left view of binary tree
Problem Statement: Given a Binary Tree, find the Right/Left view of it. The right view of a Binary Tree is
Continue readingKth largest/smallest element in Binary Search Tree
Problem statement: Given a binary search tree find the kth largest and smallest element in Binary Search Tree. Examples: Input:
Continue readingSearch in a Binary Search Tree
Problem Statement: Given a root of a Binary Search Tree and the value of a node as X . Find
Continue readingCheck for Symmetrical Binary Tree
Problem Statement: Check for Symmetrical Binary Trees Write a program to check whether a binary tree is symmetrical or not.
Continue readingMorris Inorder Traversal of a Binary tree
Problem Statement: Write a program for Morris Inorder Traversal of a Binary Tree. Example: Input: Output: Inorder Traversal of this
Continue readingCalculate the Diameter of a Binary Tree
Problem Statement: Find the Diameter of a Binary Tree. Diameter is the length of the longest path between any 2
Continue readingCheck if the Binary Tree is Balanced Binary Tree
Problem Statement: Check whether the given Binary Tree is a Balanced Binary Tree or not. A binary tree is balanced if,
Continue readingMaximum depth of a Binary Tree
Problem Statement: Find the Maximum Depth of Binary Tree. Maximum Depth is the count of nodes of the longest path
Continue reading