## Sum of all the child nodes with even parent values in a Binary Tree

Given a binary tree, the task is to find the sum of all the nodes whose parent is even. Examples: Input: 1 / \ 3… Read More »

- Kth smallest element in a subarray
- Burn the binary tree starting from the target node
- Calculate height of Binary Tree using Inorder and Level Order Traversal
- Check which player visits more number of Nodes
- Print Bottom-Right View of a Binary Tree
- Queries for number of distinct elements in a subarray | Set 2
- Print Binary Search Tree in Min Max Fashion
- Count all k-sum paths in a Binary Tree
- Insertion in n-ary tree in given order and Level order traversal
- Find maximum and minimum element in binary tree without using recursion or stack or queue
- Find the Deepest Node in a Binary Tree Using Queue STL - SET 2
- String Range Queries to find the number of subsets equal to a given String
- B*-Trees implementation in C++
- Queries for the minimum element in an array excluding the given index range
- Implementing a BST where every node stores the maximum number of nodes in the path till any leaf
- Red-Black Trees | Top-Down Insertion
- Sum of nodes in the left view of the given binary tree
- Product of minimum edge weight between all pairs of a Tree
- Convert ternary expression to Binary Tree using Stack
- Minimum distance to visit all the nodes of an undirected weighted tree
- Convert Directed Graph into a Tree
- m-WAY Search Trees | Set-1 ( Searching )
- Duplicate subtree in Binary Tree | SET 2
- Find Maximum Level Sum in Binary Tree using Recursion
- Sum of nodes in the right view of the given binary tree
- Maximum XOR with given value in the path from root to given node in the tree
- Delete the last leaf node in a Binary Tree
- Number of distinct pair of edges such that it partitions both trees into same subsets of nodes
- Convert a given Binary tree to a tree that holds Logical OR property
- Print odd positioned nodes of even levels in level order of the given binary tree

Given a binary tree, the task is to find the sum of all the nodes whose parent is even. Examples: Input: 1 / \ 3… Read More »

Given an array of n non-consecutive integers and Q queries, the task is to check whether for the given range l and r, the elements… Read More »

Given the leaf nodes of a perfect binary tree, the task is to construct the XOR tree and print the root node of this tree.… Read More »

Given an ancestor matrix mat[n][n] where the ancestor matrix is defined as below. mat[i][j] = 1 if i is ancestor of j mat[i][j] = 0,… Read More »

Given a binary tree, the task is to print left and right leaf nodes separately. Examples: Input: 0 / \ 1 2 / \ 3… 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 »

Given a number K, the task is to print the prime numbers present at that level given all the prime numbers are represented in the… Read More »

Given a binary tree of 0s and 1s, the task is to find the maximum number of 1s in any path in the tree. The… Read More »

Given a binary tree in such a way such that the level order traversal of a binary tree produces a string S. The task is… Read More »

Construct a Binary Tree from the given Binary Search Tree such that it’s level order traversal outputs sorted data. Examples: Input: Output: 1 2 3… Read More »

Given a Binary Tree of distinct nodes and a pair of nodes. The task is to find and print the path between the two given… Read More »

Given an integer N and an infinite number of Full Binary Trees of different depths, the task is to choose minimum number of trees such… Read More »

B-Tree : B-Tree is known as self-balancing tree as its nodes are sorted in inorder traversal. Unlike binary tree, in B-tree, a node can have… Read More »

Given a tree with N nodes, the task is to find the sum of lengths of all the paths. Path length for two nodes in… Read More »

Given a tree with N nodes and N – 1 edges. Each edge of the tree is labeled by a string of lowercase english alphabets.… Read More »