ProDeveloperTutorialonJanuary 15, 2025 Print all the paths from root node to leaf node In this chapter we shall see how to print all the paths from root to leaf nodes. Problem Statement: You are given the root node of a binary… Discover More
ProDeveloperTutorialonJanuary 15, 2025 Print the number of leaf nodes in a binary tree In this chapter we shall print the number of leaf nodes in a binary tree. Problem Statement: You are given the root node of the tree. You need… Discover More
ProDeveloperTutorialonJanuary 15, 2025 Add all the node values in a Binary Tree or Sum of a Binary tree In this chapter, we shall see how to add all the nodes value. Problem Statement: Given a binary tree root node, return the sum of all the… Discover More
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… Discover More
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… Discover More
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… Discover More
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