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…
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…
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…
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…
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…
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…
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]…
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…
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,…