Tutorials
Courses
Go Premium
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
32.1K+ articles
DSA
20.0K+ articles
Tree
909+ articles
Recursion
591+ articles
interview-preparation
348+ articles
Binary Tree
330+ articles
tree-level-order
123+ articles
tree-traversal
88+ articles
Inorder Traversal
43+ articles
PostOrder Traversal
37+ articles
morris-traversal
7 posts
Recent Articles
Popular Articles
POTD Solutions | 22 Nov' 23 | Symmetric Tree
Last Updated: 23 July 2025
View all POTD SolutionsWelcome to the daily solutions of ourPROBLEM OF THE DAY (POTD). We will discuss the entire problem step-by-step and work towards developing an optim...
read more
DSA
morris-traversal
GFG-POTD-Solutions
Count the number of Nodes in a Binary Tree in Constant Space
Last Updated: 23 July 2025
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
Morris traversal for Postorder
Last Updated: 23 July 2025
Perform Postorder Tree traversal using Morris Traversal.Examples:Input: 1 / \ 2 3 / \ / \ 6 7 8 9Output: 6 7 2 8 9 3 1Input: ...
read more
Tree
DSA
PostOrder Traversal
morris-traversal
Elite-Batch-2022
Remove nodes from Binary Tree such that sum of all remaining root-to-leaf paths is atleast K
Last Updated: 23 July 2025
Given a Binary Tree and an integer k, the task is to delete nodes from the given Tree such that the sum of all nodes of all remaining root-to-leaf paths is at least k.Exam...
read more
Tree
Recursion
DSA
Preorder Traversal
PostOrder Traversal
Tree Traversals
morris-traversal
Level order traversal of Binary Tree using Morris Traversal
Last Updated: 15 July 2025
Given a binary tree, the task is to traverse the Binary Tree in level order fashion.Examples:Input: 1 / \ 2 3Output:12 3Input: 5 / \...
read more
DSA
tree-traversal
tree-level-order
morris-traversal
Print K inorder successors of a Binary Tree in O(1) space
Last Updated: 15 July 2025
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 the Binary tree in constant space.Examples:Input: Tree...
read more
Tree
DSA
Inorder Traversal
Binary Tree
morris-traversal
Post Order Traversal of Binary Tree in O(N) using O(1) space
Last Updated: 12 July 2025
Prerequisites:- Morris Inorder Traversal, Tree Traversals (Inorder, Preorder and Postorder)Given a Binary Tree, the task is to print the elements in post order using O(N) ...
read more
DSA
Inorder Traversal
PostOrder Traversal
interview-preparation
morris-traversal
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 !