ProDeveloperTutorialonAugust 17, 2026 Queue: Sort a queue without using extra space Problem Statement: You are given a queue, you need to reverse the queue without using extra space. Example: Input: 1 2 3 4 Output: 4 3 2 1…
ProDeveloperTutorialonAugust 16, 2026 Queue: Given a Linked list, construct a complete binary tree Problem Statement: You are given a LL of a complete binary tree. You need to construct complete binary tree. If the root node is stored at…
ProDeveloperTutorialonAugust 16, 2026 Searching: Given an array, split into n arrays to minimize the maximum sum of all sub arrays Problem Statement: You are given an array and value k. You need to split the array in to k sub arrays such that, maximum subarray sum is…
ProDeveloperTutorialonAugust 16, 2026 Searching: Given an array, find the first and last position of an element in sorted array Problem Statement: You are given a sorted array arr[] with duplicates. You need to find the first and last occurrence of an element…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find the missing number Problem Statement: You are given an array with distinct range of [1, n]. There is one element missing. Find the missing element in the array…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find the missing elements of 2 sorted arrays Problem Statement: You are given 2 sorted arrays of different size. You need to find the elements that are present in array 1 but not in array…
ProDeveloperTutorialonAugust 16, 2026 Searching: Aggressive Cows Problem Statement: You are given an array, which denotes the position of the stall. You are given k cows, you need to assign stalls to k cows…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find the k maximum elements of an array in original array. Problem Statement: You are given an unsorted array and a value k. You need to find the K max elements and they should be in original order…
ProDeveloperTutorialonAugust 16, 2026 Searching: Given an array, find the largest pair sum Problem Statement: You are given a unsorted array of distinct integers, you need to find the largest pair sum Example: Input: [1, 4, 3, 2, 5]…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find index of an extra element in a sorted array Problem Statement: You are given 2 sorted arrays. There is only 1 element difference between the arrays. You need to find the extra element…