ProDeveloperTutorialonAugust 28, 2026 Heaps Introduction Heap is a complete binary tree and is a type of Data Structure. Heap satisfies a heap order property. A binary tree, is a complete binary tree… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Given a number, count the number of set bits using recursion Problem Statement: Given a number, count the number of set bits using recursion Example: Input: 21 Output: 3 Solution Explanation: We will use… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Handshake problem Problem Statement: You are given a number N, that will represents number of people at the party. You need to find the total number of… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Given 2 numbers find the product of the numbers, using recursion Problem Statement: Given 2 numbers find the product of the numbers, using recursion Example: Input: m = 10 n = 2 Output: 20 Solution… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Given a number, return the sum of digit Problem Statement: You are given a number, you need to return the sum of digits. Example: Input: n = 123 Output: 6 Solution Explanation: We… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Remove K adjacent duplicate in a string Problem Statement: You are given a string and a value k. You need to remove k adjacent duplicate from the array. Example: Input: s =… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Given an array, generate all sub arrays using recursion Problem Statement: You are given an array, you need to generate all sub arrays of the given array Example: Input: arr = {1, 2, 3} Output: [1],… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Remove adjacent duplicates in the string. Problem Statement: You are given a string, you need to remove adjacent duplicate. Example: Input: s = "abbaca" Output: s =… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Given a string, find the occurrence of first uppercase letter in the string. Problem Statement: You are given a string, you need to find the first upper case letter using recursion. Example: Input: proDeveloperTutorial… Discover More
ProDeveloperTutorialonAugust 28, 2026 Recursion: Given a number, generate all binary strings. Problem Statement: You are given a number, you need to generate all binary strings that do not have consecutive 1s and in increasing order… Discover More