## Remove all occurrences of any element for maximum array sum

Given an array of positive integers, remove all the occurrences of element to get the maximum sum of the remaining array Examples: Input : arr… 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 positive integers, remove all the occurrences of element to get the maximum sum of the remaining array Examples: Input : arr… Read More »

Given width and height of N rectangles. The task is to find the minimum number of rectangles left after inserting one into another. Note :… Read More »

Given an array arr[] of N integers and queries Q. Queries are of two types: Update a given index ind by X. Find the gcd… Read More »

Given a number N, the task is to find the largest number less than or equal to the given number N such that on rearranging… Read More »

Given an array A[] containing N elements and an integer K. The task is to calculate the product of all elements of subsequences of size… Read More »

Given an integer array arr[] of length N and an integer K, the task is to count the number of possible arrays of length K… Read More »

Given an array arr[] which contains the frequency of the digits (0-9), the task is to find the count of numbers possible using each digit… Read More »

Given N non-overlapping ranges L[] and R[] where the every range starts after the previous range ends i.e. L[i] > R[i – 1] for all… Read More »

Given an array arr[] of random integers, the task is to push all the zero’s in the array to the start and all the one’s… Read More »

Given a string str, its sub-strings are formed in such a way that all the sub-strings starting with the first character of the string will… Read More »

Given two unsorted arrays arr1[] and arr2[], the task is to find the sum of elements of arr1[] such that number of elements less than… Read More »

A seller wants to sell his items at a discount of X%. He increases the price of each item by X% of the original price.… Read More »

Given an array arr[] of N integers, the task is to find the maximum absolute difference between any two elements of the array. Examples: Input:… Read More »

Given an array of N elements. The task is to build a Binary Heap from the given array. The heap can be either Max Heap… Read More »

Given an array arr[] of N integers. The task is to first find the maximum sub-array sum and then remove at most one element from… Read More »