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… Discover More
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… Discover More
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… Discover More
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… Discover More
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… Discover More
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… Discover More
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… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Top view of a binary tree In this chapter we shall learn how to print top view of a binary tree. Problem Statement: You are given a root node of the tree print the top… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Boundary Traversal of Binary Tree We shall solve boundary traversal of binary tree in this tutorial. Problem Statement: Given a binary tree, list all the nodes that come in the… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Bottom view of binary Tree In this tutorial, we shall solve how to print bottom view of a binary tree. Problem statement: You are given a binary tree; you need to print… Discover More