## Print the nodes of Binary Tree having a grandchild

Given a Binary Tree, the task is to print the nodes that have grandchildren. Examples: Input: Output: 20 8 Explanation: 20 and 8 are the… Read More »

- Minimum time to burn a Tree starting from a Leaf node
- Print all nodes at distance K from given node: Iterative Approach
- Level order traversal in spiral form | Using Deque
- Binarytree Module in Python
- Check if a binary tree is subtree of another binary tree using preorder traversal : Iterative
- Find distance between two nodes in the given Binary tree for Q queries
- Print Palindromic Paths of Binary tree
- Sum of all nodes at Kth level in a Binary Tree
- Boundary Level order traversal of a Binary Tree
- Least Common Ancestor of any number of nodes in Binary Tree
- Deletion of a given node K in a Binary Tree using Level Order Traversal
- Count the number of visible nodes in Binary Tree
- Count nodes in the given tree whose weight is a fibonacci number
- Find the maximum Even Digit Sum node in the given tree
- Print all Exponential Levels of a Binary Tree
- Check if Inorder traversal of a Binary Tree is palindrome or not
- Find the numbers present at Kth level of a Fibonacci Binary Tree
- Maximum absolute difference between any two level sum in a Binary Tree
- Clockwise Triangular traversal of a Binary Tree
- Print K inorder successors of a Binary Tree in O(1) space
- Min-Max Product Tree of a given Binary Tree
- Count of Nodes whose both immediate children are its prime factors
- Create Balanced Binary Tree using its Leaf Nodes without using extra space
- Check if max sum level of Binary tree divides tree into two equal sum halves
- Construct a Binary in Level Order using Recursion
- Print all Coprime path of a Binary Tree
- Sum of all the child nodes with even parent values in a Binary Tree
- Check if all nodes of the Binary Tree can be represented as sum of two primes
- Print all K-sum levels in a Binary Tree
- Print all Co-Prime Levels of a Binary Tree

Given a Binary Tree, the task is to print the nodes that have grandchildren. Examples: Input: Output: 20 8 Explanation: 20 and 8 are the… Read More »

Given a Binary Tree and a positive integer K. The task is to check whether the Balanced BST of size K exist in a given… Read More »

Given a binary tree, the task is to print the longest path from the root node to the leaf node. If there are multiple answers… Read More »

Given an integer Q representing the number of queries and an array where each query has an integer N. Our task is to iterate through… Read More »

Given a Binary Tree, the task is to check if the maximum sum level divides the binary tree into the two parts of two equal… Read More »

Double Threaded Binary Search Tree: is a binary search tree in which the nodes are not every left NULL pointer points to its inorder predecessor… Read More »

Prerequisites: Binary Tree to Doubly Linked List Given a Binary Tree, the task is create a Balanced Binary Tree from all the leaf nodes of… Read More »

Given a Binary Tree, the task is to convert the given Binary tree into Min-Max Product Tree and print the level-order sequence of the modified… Read More »

Given a binary tree of N nodes with odd value. The task is to check whether all the nodes of the tree can be represented… Read More »

Given two integers N and K where N denotes the height of a binary tree, the task is to find the parent of the node… Read More »

Given a Binary Tree having positive and negative nodes, the task is to find the maximum absolute difference of level sum in it. Examples: Input:… Read More »

Given a Binary Tree and two numbers P and K, the task is to print the K Inorder Successor of the given number P from… Read More »

Given a binary tree where node contains characters, the task is to count the number of paths from root vertex to leaf such that at… Read More »

Given a binary tree and the task if to check if its Inorder Sequence is a palindrome or not. Examples: Input: Output: True Explanation: The… Read More »

Given a binary tree having N nodes and weight of N-1 edges. The distance between two nodes is the sum of the weight of edges… Read More »