Binary Tree Problems
- Introduction & Creation of Binary Tree
- Inorder, PreOrder & PostOrder Traversals in Binary Tree
- Get Sum of all Nodes in Binary Tree
- Get difference of values at Even & Odd level
- Get Number of Nodes in a Binary Tree
- Get number of Leaf Nodes in Binary Tree
- Get Height of a Binary Tree/Node
- Print elements at given level in Binary Tree
- Print elements in Level order (Using Recursion)
- Level Order traversal without Recursion (Using Queue)
- Level Order Traversal Line by Line Without Recursion (Using Single Queue)
- Print Reverse Level order Traversal (Using Recursion)
- Reverse Level Order Traversal without using recursion
- Print Left view of Binary tree
- Print Right View of Binary Tree
- Print InOrder Traversal without using recursion
- Print PreOrder Traversal without using recursion
- PostOrder Traversal without using recursion
- Convert a binary tree to its Mirror Tree
- Delete the Binary Tree
- Check if two binary trees are identical
- Get Level of a Given Node
- Print Top View of Binary Tree
- Print Bottom View of Binary Tree
- Print Boundary Nodes In Binary Tree
- Print Vertical Order of Binary Tree
- Get Vertical Sum of Binary Tree
- Get Sum of elements Level wise of Binary Tree
- Search an element in Binary Tree
- Print Level Order Traversal in Spiral form in Binary Tree
- Print elements between any two given level
- Get Maximum width of Binary Tree
- Check if two trees are mirror to each other
- Check if Two Trees are Mirror Structure to each other
- Check if Two Binary Trees have same Structure
- Check if Binary Tree is Foldable Tree
- Check if two Binary Trees are Isomorphic
- Get Width of a Level in Binary Tree
- Create Binary tree from InOrder & Preorder
- Get Height of Binary Tree in Iterative Manner
- Get Diameter of Binary Tree | Get Max distance between any two leaf nodes
- Check if given Binary Tree is Height Balanced Tree
- Check If Root to Leaf Sum matches for Given Sum in Binary Tree
- Print root to leaf every path in Binary Tree
- Get Max Sum from Root To Leaf in Binary Tree
- Get Sum of all numbers formed from Root to Leaf Path in Binary Tree
- Find Maximum or Minimum in Binary Tree
- Find Min Height of Binary Tree
- Get Sum of all Leaf Nodes in Binary Tree
- Get Sum of all Left Leaf Nodes in Binary Tree
- Get Minimum distance to Leaf from Root in Binary Tree
- Check if all Leaf Nodes are at same level in Binary Tree
- Get deepest Left Leaf Node in Binary Tree
- Find depth of Odd level Leaf node in Binary Tree
- Remove all Nodes which lies on path with less than K length from Root to Leaf
- Remove all nodes which don’t lie in any path from root to leaf with sum>= k
- Find if the sequence is present as a root-to-leaf path in the given tree
- Print ancestors of a given value in Binary Tree
- Get Parent of a given value in Binary Tree
- Get Sibling node of a given value in Binary Tree
- Check if given two nodes are siblings to each other in Binary Tree
- Check if given two nodes are cousin to each other in Binary Tree
- Find LCA (Lowest Common ancestor) in Binary Tree
- Find distance b/w two nodes in Binary Tree
- Print all nodes at k distance from given node in Binary Tree
- Get Average of all nodes in Binary Tree
- Get closest leaf node distance from a given value in Binary Tree
- Serialize & Deserialize a Binary tree
- Check if given Binary Tree is BST
- Convert Binary Tree to Doubly Linked List (BST to DLL)
- Connect ‘next’ pointer to it’s Inorder Successor in Binary Tree
- Get Right node of given value in Binary Tree
- Connect Nodes at same level with ‘next’ pointer in Binary Tree
- Connect ‘next’ pointer to Level Order Successor Node
- Check If Parent contains sum of both children
- Check If given Binary Tree is Sum Tree
- Get Diagonal Sum in Binary Tree
Thank you so much Sir for all wonderful coding question that you have posted on your youtube channel! I will forever be grateful to you and I’m sure many others would be too. Please continue posting such amazing explanations of coding question. We all will keep supporting you and we will make sure that your channel becomes way more popular and well known to millions of people all around the world! Thank you again!
Thanks for your nice words. Keep Watching.
Thank you so much sir for providing us such great interview material. Really it helped me alot
Thanks Ankur.