ProDeveloperTutorialonJanuary 18, 2025 Searching and Sorting: print all subarrays with 0 sum Problem Statement: You are given an array and you need to print all the sub array with the sum 0. Example Input: [ -3, -1, 0, 4 ] Subarrays… Discover More
ProDeveloperTutorialonJanuary 18, 2025 Searching and Sorting: Merge 2 sorted arrays Problem Statement: You are given two sorted arrays x[] and y[] of size m and n, You need to merge elements of array x[] to y[] by maintaining… Discover More
ProDeveloperTutorialonJanuary 18, 2025 Maximum sum such that no two elements are adjacent Problem Statement: You are given an array, you need to find the maximum sum of subsequence where no 2 numbers in the sequence are adjacent. So… Discover More
ProDeveloperTutorialonJanuary 18, 2025 Searching and Sorting: Maximum sum such that no two elements are adjacent Problem Statement: You are given an array, you need to find the maximum sum of subsequence where no 2 numbers in the sequence are adjacent. So… Discover More
ProDeveloperTutorialonJanuary 17, 2025 Searching and Sorting: Count all distinct pairs with difference equal to k Problem Statement: You are given an unsorted array, and an integer K. You need to get all distinct pairs with difference equal to k. Example… Discover More
ProDeveloperTutorialonJanuary 17, 2025 Searching and Sorting: Search an array where adjacent differ by at most k Problem Statement: You are given an array and has a difference of atmost k. Given a key ‘x’, we need to find the index value of… Discover More
ProDeveloperTutorialonJanuary 17, 2025 Searching and Sorting: Maximum and minimum of an array using minimum number of comparisons Problem Statement: You are given an unsorted array, you need to get the maximum and minimum element of the array using minimum comparisons.… Discover More
ProDeveloperTutorialonJanuary 17, 2025 Searching and Sorting: Get the fixed point in an array Problem Statement: You are given an sorted ascending array, you need to find the fixed point. A fixed point is an element in the array, such… Discover More
ProDeveloperTutorialonJanuary 17, 2025 Strings: Recursively print all sentences that can be formed from list of word lists Problem Statement: You are given list of words, you need to print all the combinations of phrases that can be formed by picking one word from… Discover More
ProDeveloperTutorialonJanuary 17, 2025 Strings: Find minimum operations required to transform a string into another string Problem Statement: You are given 2 strings, you need to convert str1 to str2 by only moving a character from str1 to front. If the string can… Discover More