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
Algorithms
2.0K+ articles
Tree
1.4K+ articles
Data Structures
1.1K+ articles
Recursion
1.0K+ articles
tree-level-order
123+ articles
Tree Traversals
106+ articles
tree-traversal
88+ articles
Binary Tree
330+ posts
Recent Articles
Popular Articles
Count the number of Nodes in a Binary Tree in Constant Space
Last Updated: 29 April 2024
Given a binary tree having N nodes, count the number of nodes using constant O(1) space. This can be done by simple traversals like- Preorder, InOrder, PostOrder, and Leve...
read more
Tree
Picked
Geeks Premier League
DSA
Binary Tree
threaded-binary-tree
morris-traversal
Geeks Premier League 2023
Validate the Binary Tree Nodes
Last Updated: 06 December 2023
Given N nodes numbered from 0 to n-1, also given the E number of directed edges, determine whether the given nodes all together form a single binary tree or not.Examples:I...
read more
Graph
Picked
Geeks Premier League
DSA
Binary Tree
union-find
Geeks Premier League 2023
Find number of path with same moves in full Binary Tree
Last Updated: 23 March 2024
Consider a Binary Tree having N nodes having root equal to 1. In which for any node X, the left and right child are 2*X and ((2*X) + 1). Then in such a Binary Tree, there ...
read more
Tree
Geeks Premier League
DSA
Binary Tree
Binary Search
Bitwise-OR
Geeks Premier League 2023
Minimizing Signal Propagation Time in a Binary Tree
Last Updated: 04 December 2023
Given a binary tree and a source node "start" which transmits a network signal. The signal propagates to neighboring nodes every second, the task is to determine the minim...
read more
Tree
Geeks Premier League
DSA
Binary Tree
BFS
Geeks Premier League 2023
POTD Solutions | 15 Oct' 23 | Normal BST to Balanced BST
Last Updated: 22 November 2023
View all POTD SolutionsWelcome to the daily solutions of our PROBLEM OF THE DAY (POTD). We will discuss the entire problem step-by-step and work towards developing an opti...
read more
Competitive Programming
DSA
Binary Tree
Binary Search Trees
GFG-POTD-Solutions
Maximum number in Binary tree of binary values
Last Updated: 18 January 2024
Given a binary tree consisting of nodes, each containing a binary value of either 0 or 1, the task is to find the maximum decimal number that can be formed by traversing f...
read more
Tree
Geeks Premier League
DSA
Binary Tree
Geeks Premier League 2023
Maximizing Robbery in Binary Tree Houses without Alerting Police
Last Updated: 18 December 2023
There are Houses arranged in the form of a Binary tree. There is only one entrance to the houses which is the root of a tree. It will automatically contact the police if t...
read more
Tree
Picked
Geeks Premier League
DSA
Binary Tree
Algorithms-Dynamic Programming
Geeks Premier League 2023
POTD Solutions | 20 Nov’ 23 | K Sum Paths
Last Updated: 28 April 2025
View all POTD SolutionsWelcome to the daily solutions of our PROBLEM OF THE DAY (POTD). We will discuss the entire problem step-by-step and work towards developing an opti...
read more
Competitive Programming
DSA
Binary Tree
Tree Traversals
GFG-POTD-Solutions
Maximum Sum Level Except Triangular Number in Binary Tree
Last Updated: 23 April 2024
Given a Binary tree, Then the task is to output the maximum sum at any level excluding Triangular numbers. Xth Triangular numbers is the sum of starting X natural numbers,...
read more
Tree
Geeks Premier League
DSA
Binary Tree
tree-traversal
Geeks Premier League 2023
Paths of Triangular Number in a Binary Tree
Last Updated: 24 February 2024
Given a Binary Tree, the task is to output the Count of the number of paths formed by only a Triangular number. Xth Triangular number is the sum of the first X natural num...
read more
Tree
Geeks Premier League
DSA
Preorder Traversal
Binary Tree
triangular-number
Geeks Premier League 2023
Ceil in a Binary Search Tree Python
Last Updated: 31 May 2024
In a Binary Search Tree (BST), the ceiling of a given value is the smallest element in the tree that is greater than or equal to the given value. Finding the ceiling in a ...
read more
Python
Picked
Binary Tree
Python-DSA
Binary Tree Traversal
Last Updated: 27 December 2024
Binary trees are fundamental data structures in computer science and understanding their traversal is crucial for various applications. Traversing a binary tree means visi...
read more
Tree
DSA
Binary Tree
Checking and Printing Binary Tree
Last Updated: 22 May 2024
A binary tree is a fundamental data structure in computer science that hierarchically organizes elements. Each node in the tree can have at most two child nodes: a left ch...
read more
Tree
DSA
Binary Tree
Check Symmetrical Binary Tree using JavaScript
Last Updated: 14 June 2024
Given a binary tree, our task is to check whether it is Symmetrical Binary tree. In other words, we need to check whether the binary tree is a mirror of itself.Example: In...
read more
JavaScript
Web Technologies
Picked
Binary Tree
JavaScript Programs
Binary Tree Representation
Last Updated: 07 October 2024
Binary tree is a tree data structure (non-linear) in which each node can have at most two children which are referred to as the left child and the right child. The topmost...
read more
Tree
DSA
Binary Tree
1
2
3
4
...
22
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 !