## Minimum number of segments required such that each segment has distinct elements

Given an array of integers, the task is to find the minimum number of segments that the array elements can be divided into such that… Read More »

- Remove duplicates from unsorted array
- MakeMyTrip Interview Experience 2019
- Design a Hit Counter
- Make all numbers of an array equal
- Count distinct elements in an array
- Reach the numbers by making jumps of two given lengths
- How do Dynamic arrays work?
- Check whether an Array is Subarray of another Array
- Largest palindromic number in an array
- Program for K Most Recently Used (MRU) Apps
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- Sum of all odd frequency elements in an array
- Coviam Software Developer Internship Experience
- Sum of XOR of all subarrays
- Sum of minimum elements of all subarrays
- Minimum operations required to make all the array elements equal
- Length of the longest Subarray with only Even Elements
- Longest subsequence such that adjacent elements have at least one common digit
- Print all pairs in an unsorted array with equal sum
- A Sum Array Puzzle
- Minimum elements to be removed such that sum of adjacent elements is always even
- Count of pairs (x, y) in an array such that x < y
- Number of pairs whose sum is a power of 2
- Maximum of all Subarrays of size k using set in C++ STL
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Count array elements that divide the sum of all other elements
- Length of the longest alternating subarray
- Smallest Pair Sum in an array
- Number of array elements derivable from D after performing certain operations
- Find two numbers whose divisors are given in a random order

Given an array of integers, the task is to find the minimum number of segments that the array elements can be divided into such that… Read More »

Given a number N, the task is to check if the all sub-numbers of this number have distinct digit product. Note: An N digit number… Read More »

Given an array of integers (less than 10^6), the task is to find the sum of all the prime numbers which appear after every (k-1)… Read More »

Given an array arr[] of N positive integers. The task is to write a program to find the sum of all prime elements in the… Read More »

Given an array arr[] of N positive integers. The task is to write a program to find the product of all the prime numbers of… Read More »

Given an array of integers of N elements. The task is to print the product of all of the pairwise consecutive elements. Pairwise consecutive pairs… Read More »

Given an integer array with duplicate elements. The task is to find the product of all distinct elements in the given array. Examples: Input :… Read More »

Given an array of integers. The task is to write a program to find the product of elements at even and odd index positions separately.… Read More »

Given an array of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given array. That… Read More »

Given an array of size N and X. Find minimum moves required to make the array in increasing order. In each move one can add… Read More »

Given an array of N numbers. The task is to maximize the number of subarrays with XOR value zero by swapping the bits of array… Read More »

Given an array of integers containing duplicate elements. The task is to find the sum of all even occurring elements in the given array. That… Read More »

Given an array of integers containing duplicate elements. The task is to find the sum of all highest occurring elements in the given array. That… Read More »

Given an array of integers containing duplicate elements. The task is to find the sum of all least occurring elements in the given array. That… Read More »

Given an array. The task is to find the length of the longest subsequence in which all elements must have at least one digit in… Read More »