Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
Tree
1.4K+ articles
Data Structures
1.1K+ articles
Recursion
1.0K+ articles
Queue
371+ articles
Binary Tree
330+ articles
Tree Traversals
106+ articles
cpp-queue
63+ articles
tree-level-order
123+ posts
Recent Articles
Popular Articles
Odd level sum of given Binary Tree
Last Updated: 16 November 2023
Given a binary tree, write a function that takes the root node and updates the original tree in such a way every node that is present at an odd level gets updated as the s...
read more
Tree
Binary Tree
tree-level-order
Geeks Premier League
DSA
Minimum operation to make every leaf node equal
Last Updated: 22 October 2024
Given a binary tree that contains multiple nodes, the task is to find a minimum number of operations required to make leaf nodes at the same level equal. By performing one...
read more
Tree
Binary Tree
Data Structures-Tree Traversals
tree-level-order
DSA
Level Order Traversal of N-ary Tree
Last Updated: 17 March 2023
Given an N-ary Tree. The task is to print the level order traversal of the tree where each level will be in a new line.Examples:Input: Output:13 2 45 6Explanation: At leve...
read more
Tree
Recursion
n-ary-tree
tree-level-order
DSA
Print List of nodes of given n-ary Tree with number of children in range [0, n]
Last Updated: 31 January 2023
Given an n-ary Tree having N nodes numbered from 1 to N, the task is to print a list of nodes containing 0, 1, 2, 3, . . ., n children.Note: An n-ary Tree is a tree in whi...
read more
Tree
Recursion
n-ary-tree
tree-level-order
DSA
Find all duplicate levels of given Binary Tree
Last Updated: 23 December 2023
A binary tree is a tree data structure in which each node has at most two child nodes, referred to as the left and right children. In this question, the task is to find al...
read more
Tree
Binary Tree
tree-level-order
Geeks-Premier-League-2022
Geeks Premier League
DSA
Check if level-wise Decimal equivalent of Binary Tree forms a Monotonic sequence or not
Last Updated: 21 March 2023
Given the root of a binary tree in which all nodes has values either 0 or 1, the task is to check if the level-wise decimal equivalent of given Tree forms a monotonic sequ...
read more
Tree
Binary Tree
Pattern Searching
binary-representation
tree-level-order
Geeks-Premier-League-2022
Geeks Premier League
DSA
Zig-Zag level order traversal of Binary Tree after every K levels
Last Updated: 21 October 2024
Given a binary tree and an integer k, the task is to print the level order traversal in such a way that first k levels are printed from left to right, next k levels are pr...
read more
Tree
Binary Tree
tree-level-order
Geeks-Premier-League-2022
Geeks Premier League
DSA
Find the level with maximum setbit count in given Binary Tree
Last Updated: 05 July 2022
Given a binary tree having N nodes, the task is to find the level having the maximum number of setbits.Note: If two levels have same number of setbits print the one which ...
read more
Bit Magic
Tree
Binary Tree
setBitCount
Searching
Mathematical
tree-level-order
Geeks-Premier-League-2022
Geeks Premier League
DSA
Find Level wise positions of given node in a given Binary Tree
Last Updated: 01 April 2022
Given a binary tree and an integer X, the task is to find out all the occurrences of X in the given tree, and print its level and its position from left to right on that l...
read more
Tree
Searching
tree-level-order
Geeks-Premier-League-2022
Geeks Premier League
DSA
Print all Nodes of given Binary Tree at the Kth Level
Last Updated: 29 March 2022
Given a binary tree and an integer K, the task is to print all the integers at the Kth level in the tree from left to right.Examples:Input: Tree in the image below, K = 3O...
read more
Tree
Binary Tree
tree-level-order
DSA
Difference between odd level and even level leaf sum in given Binary Tree
Last Updated: 13 March 2023
Given a Binary Tree, the task is to find the difference of the sum of leaf nodes at the odd level and even level of the given tree.Examples:Input:Output: -12Explanation: F...
read more
Tree
Binary Tree
Queue
C++
tree-level-order
DSA
Find the parent node of maximum product Siblings in given Binary Tree
Last Updated: 26 December 2023
Given a binary tree, the task is to find the node whose children have maximum Sibling product in the given Binary Tree. If there are multiple such nodes, return the node w...
read more
Tree
tree-traversal
Mathematical
tree-level-order
DSA
Sum of leaf nodes at each horizontal level in a binary tree
Last Updated: 06 March 2023
Given a Binary Tree, the task is to find the sum of leaf nodes at every level of the given tree.Examples:Input:Output:0063012Explanation:Level 1: No leaf node, so sum = 0L...
read more
Tree
Binary Tree
Java
tree-traversal
Queue
Python
C++
tree-level-order
TrueGeek
TrueGeek-2021
DSA
Level order traversal by converting N-ary Tree into adjacency list representation with K as root node
Last Updated: 13 March 2023
Given the root node of an N-ary tree and an integer K, the task is to convert the given tree into adjacency list representation and print the level order traversal conside...
read more
Tree
tree-traversal
Mathematical
Graph Traversals
tree-level-order
DSA
Left and Right view of a Generic Tree
Last Updated: 12 December 2022
Given a Generic Tree consisting of N nodes, the task is to find the left and right views of the given generic Tree.Examples:Input: 1 / \ 2 3 ...
read more
Tree
Queue
Tree Traversals
tree-level-order
DSA
1
2
3
4
5
6
7
8
9
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !