ProDeveloperTutorialonAugust 16, 2026 Searching: Given an sorted rotated array, find the given key is present Problem Statement: You are given a sorted and rotated array and a key. You need to find if the index of the key. Example: Input: arr = [3, 4,…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find the value and its double in the array Problem Statement: You are given an unsorted array and element k. You need to find the double the value of k and return the value of k…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find the closest number in the sorted array Problem Statement: You are given an array, and a value k. You need to find the the closest value to the number k. It might have duplicate and…
ProDeveloperTutorialonAugust 16, 2026 Searching: Given an number, find the numbers whose factorials end with n zeros Problem Statement: You are given a number “n”. You need to find the number of +ve integers whose factorial ends with n zeros.…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find fixed point in the given array Problem Statement: You are given an array. You need to find the fixed point. A fixed point is a value equal to index. If there is no fixed…
ProDeveloperTutorialonAugust 16, 2026 Searching: Allocate minimum pages Problem Statement: You are given an array that represents number of pages in the ith book. There are m students, you need to allocate all the…
ProDeveloperTutorialonAugust 16, 2026 Searching: Find median of two sorted array of different sizes Problem Statement: You are given 2 sorted arrays of different sizes, you need to find the median. If the total elements in combined array is…
ProDeveloperTutorialonAugust 16, 2026 Searching: Count number of occurrence in a sorted array Problem Statement: You are given a sorted array a[] and a target element. You need to find the number of times the target element is element.…
ProDeveloperTutorialonAugust 14, 2026 Searching: Count the number of 1s in a sorted binary array Problem Statement: You are given a binary array, in decreasing order. You need to count the number of 1’s in it. Example: Input: arr[] =…
ProDeveloperTutorialonAugust 14, 2026 Searching: Given two arrays, generate third array with the given constraints Problem Statement: You are given 2 arrays a and b. You need to create a new array c, such that c[i], has the value from a[] which is greater…