ProDeveloperTutorialonJanuary 15, 2025 Check if binary tree is a sum tree In this tutorial we shall check if the tree is a sum tree or not. Problem Statement: You are given the root node of a binary tree. You need to…
ProDeveloperTutorialonJanuary 15, 2025 Check if 2 binary tree are identical In this chapter, we shall see if 2 trees are identical. Problem statement: You are given root node of 2 binary trees, you need to check if 2…
ProDeveloperTutorialonJanuary 15, 2025 Check if 2 nodes are mirror of each other In this tutorial we shall see how to check if 2 trees are mirror to each other. Problem Statement: You are given root node of 2 trees. You…
ProDeveloperTutorialonJanuary 15, 2025 Lowest Common ancestor of a Binary Tree. In this chapter we shall see how to calculate lowest common ancestor in a binary tree. Problem Statement: You are given root node of a tree…
ProDeveloperTutorialonJanuary 15, 2025 Diameter of a Binary Tree In this chapter we shall solve how to find out diameter of a binary tree. Problem statement: You are given root node of a binary tree, you…
ProDeveloperTutorialonJanuary 15, 2025 Spiral order or Zigzag traversal of a Binary Tree In this chapter we shall see tree spiral order traversal using 2 stacks. Problem statement: Given a root of the Binary tree, you need to print…
ProDeveloperTutorialonJanuary 15, 2025 Height or Max depth if a BTree In this chapter we shall calculate the height of a Binary Tree. Problem Statement: Given the root node of binary tree, calculate the height of…
ProDeveloperTutorialonJanuary 15, 2025 Vertical Order Traversal In this tutorial we shall see how to do vertical order traversal. Problem Statement: You are given a root node of a tree, you need to print…
ProDeveloperTutorialonJanuary 14, 2025 Level Order Traversal In this tutorial we shall see how to print level by level of the tree nodes. Problem Statement: Given the root node of the tree, print the…
ProDeveloperTutorialonJanuary 14, 2025 Left view and right view of a Binary Tree Problem Statement: Given a binary tree, print the left and right view of the tree. For example: If you have a tree as below: The left view…