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
ProDeveloperTutorialonJanuary 14, 2025 Bitwise and of number range You are given a number range, you need to find the bitwise and of all the numbers in the range. Example: [5, 7] The bitwise and of 5, 6, 7… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Hamming Distance You are given 2 integers, and you need to return the count at which the bits are different in their binary form. Consider 8 and 1 As… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Counting set bits in a number You are given a number; you need to create an array to fill the number of 1’s present in their binary format. Example: Input n = 3 Output =… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Missing Number Problem statement: You are given an array of numbers from 1 to n, in any order, one number will be missing. You need to find a missing number.… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Power of 2 Given a number, you need to check if the number is a power of 2, return true or false accordingly. Example: Input: 1 Output: True Because 2^0… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Count the number of set bits Problem statement: You are given a number, return the number of set bits if that number, when represented that number in binary format.… Discover More
ProDeveloperTutorialonJanuary 14, 2025 Reverse Bits Problem Statement: You are given a number as input. You need to reverse the bits in it’s binary form and print the output. The maximum length… Discover More