ProDeveloperTutorialonAugust 13, 2026 Sorting: Given an array, minimize sum of product of consecutive pairs Problem Statement: You are given an array. You need to re arrange an array in such a way that, when multiply an element with its alternative…
ProDeveloperTutorialonAugust 13, 2026 Sorting: Given an array, you need to check if it has contiguous integers Problem Statement: Given an array that has duplicate elements, You need to check if the array has continuous integers. Example: Input = [5, 4,…
ProDeveloperTutorialonAugust 13, 2026 Sorting: Check if any interval completely overlaps other Problem Statement: You are given an interval. You need to check if any interval completely overlaps other. Example: Input: {{1, 3}, {1, 7},…
ProDeveloperTutorialonAugust 13, 2026 Sorting: Merge 2 sorted arrays Problem Statement: You are given 2 arrays, you need to merge 2 sorted arrays Example: Input: a = [1, 2, 3, 4, 4, 5] b = [6, 6, 7, 8, 9]…
ProDeveloperTutorialonAugust 12, 2026 Sorting: Minimum increment to make array unique Problem Statement: You are given an array. You need to choose a index and increment that value by 1. You need to return the number of…
ProDeveloperTutorialonAugust 12, 2026 Sorting: Given 2 arrays, return minimum number of platforms required for a railway station Problem Statement: You are given 2 arrays arrival[], departure[] of trains. You need to get the minimum number of platforms required, so that…
ProDeveloperTutorialonAugust 12, 2026 Sorting: Given an array, count inversions Problem Statement: You are given an array, you need to find the inversion count. 2 array elements a[i] and a[j] form an inversion if a[i] >…
ProDeveloperTutorialonAugust 12, 2026 Sorting: Given an array, return the number of steps required to make array elements same Problem Statement: You are given an array, you need to return the minimum number of steps to make the array elements same. You can increment…
ProDeveloperTutorialonAugust 12, 2026 Sorting: Get union of 2 sorted arrays Problem Statement: You are given 2 sorted arrays, You need to return the union of union of 2 arrays such that the new array will have all…
ProDeveloperTutorialonAugust 12, 2026 Sorting: Given an array, sort the elements alternatively Problem Statement: You are given an array, rearrange the array in such a way that first max, first min, second max, second min etc Example:…