Skip to content

Tag Archives: tree-level-order

Given two Binary Trees we have to detect if the two trees are Isomorphic. Two trees are called isomorphic if one of them can be… Read More
Given a Binary Tree and an integer K where the tree has positive and negative nodes, the task is to print the elements of the… Read More
Given a Binary Tree, the task is to print all levels of this tree in Boundary Level order traversal. Boundary Level order traversal: In this… Read More
Given a Binary Tree, the task is to count the nodes whose immediate children are co-prime.  Examples:  Input: 1 / \ 15 5 / \… Read More
Given a Binary Tree, the task is to print the count of nodes whose either of the immediate child is its prime factors.  Examples:  Input:… Read More
Given a Binary Tree, the task is to print the count of nodes whose immediate children are its factors.  Examples:   Input: 1 / \ 15… Read More
Given a Binary Tree, the task is to print all Co-prime levels of this tree.  Any level of a Binary tree is said to be… Read More
Given a Binary Tree, the task is to print all prime levels of this tree.  Any level of a Binary tree is said to be… Read More
Given a Binary Tree, the task is to print all palindromic levels of this tree.  Palindrome Level Any level of a Binary tree is said… Read More
Given an array of integers, the task is to construct a binary tree in level order fashion using Recursion. Examples  Given an array arr[] =… Read More
Given a Binary Tree with positive values at each node, the task is to print the maximum number that can be formed by arranging nodes… Read More
Given a binary tree, the task is to print all the nodes except the rightmost in every level of the tree. The root is considered… Read More
Given a binary tree and a node K, the task is to delete the node K from it by making sure that tree shrinks from… Read More
Given a binary tree with N nodes and an integer K, the task is to find the sum of all the nodes present at the… Read More
Given a string str containing only lowercase characters. The problem is to print the characters along with their frequency in the order of their occurrence… Read More

Start Your Coding Journey Now!