ProDeveloperTutorialonAugust 14, 2026 Sorting: Sort an array having partially sorted and partially unsorted array Problem Statement: You are given a 2 numbers N and M and an array[] whose size is “N+M”. Here, The first N elements are sorted in…
ProDeveloperTutorialonAugust 14, 2026 Sorting: Get the intersection of 2 arrays Problem Statement: You are given 2 sorted arrays a[] and b[]. You need to return the intersection of the 2 arrays. Resultant array should not…
ProDeveloperTutorialonAugust 14, 2026 Sorting: Given a string, sort it by frequency of characters Problem Statement: Given a string, sort it by frequency of characters. Capital letter and small letter are treated differently. Example:…
ProDeveloperTutorialonAugust 14, 2026 Sorting: Merge two sorted arrays without extra space. Problem Statement: You are given 2 sorted arrays a[] and b[] with size n and m. You need to merge both the arrays such that, smallest n…
ProDeveloperTutorialonAugust 14, 2026 Sorting: Given an unsorted array and a value x, you need to check if a pair exist for given difference Problem Statement: You are given an unsorted array and a value x. You need to find if there exits a pair with absolute diffrence x. Example:…
ProDeveloperTutorialonAugust 14, 2026 Sorting: Check if the array can be fit into another array by re-arranging the elements. Problem Statement: You are given 2 arrays of same size. You need check if there exist a solution such that the ith element of the first array…
ProDeveloperTutorialonAugust 14, 2026 Sorting: Check if a given array is K sorted or not Problem Statement: You are given an array of unique elements and and a number k.. You need to check if the array is K sorted or not. Example:…
ProDeveloperTutorialonAugust 13, 2026 Sorting: Check if the array is Arithmetic Progression Problem Statement: You are given an unsorted array. You need to check if the array is AP. An array is considered as AP if the difference…
ProDeveloperTutorialonAugust 13, 2026 Sorting: Check if two arrays are equal or not Problem Statement: You are given 2 arrays, you need to check if the array are same or not Example: Input: a[] = [1, 2, 3, 4, 5] b[] = [5, 4,…
ProDeveloperTutorialonAugust 13, 2026 Sorting: Check if reversing sub array make the array sorted Problem Statement: You are given an array. You need to check if reversing any sub array, can make the array sorted or not. Example: Input :…