## Maximize the subarray sum after multiplying all elements of any subarray with X

Given an array arr[] of N integers and an integer X. We can choose any sub-array and multiply all its element by X. After multiplication,… 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
- Longest subsequence such that adjacent elements have at least one common digit
- A Sum Array Puzzle
- Print all pairs in an unsorted array with equal sum
- Minimum elements to be removed such that sum of adjacent elements is always even
- Number of pairs whose sum is a power of 2
- Maximum of all Subarrays of size k using set in C++ STL
- Count of pairs (x, y) in an array such that x < y
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Length of the longest alternating subarray
- Smallest Pair Sum in an array
- Count array elements that divide the sum of all other elements
- Number of array elements derivable from D after performing certain operations
- k-th missing element in an unsorted array
- Find two numbers whose divisors are given in a random order

Given an array arr[] of N integers and an integer X. We can choose any sub-array and multiply all its element by X. After multiplication,… Read More »

Given two arrays box[] and truck[] where box[i] represents the weight of the ith box and truck[i] represents the maximum load that the ith truck… Read More »

Given two array A[] and B[]. Where size of A[] represent the number of rows and A[i] represent the number of boxes in the ith… Read More »

Given four arrays containing integer elements and an integer sum, the task is to count the quadruplets such that each element is chosen from a… Read More »

Given an array arr[] of N integers. The task is to find the sum of factorials of each element of the array. Examples: Input: arr[]… Read More »

Given an array of pairs arr[], the task is to find the maximum cost choosing at most K pairs. The cost of an array of… Read More »

Given N intervals in the form [l, r] and an integer Q. The task is to find the interval which when removed results in the… Read More »

Given an array arr[] of integers, the task is to find the minimum number greater than the maximum element from the array which cannot be… Read More »

Given an array arr[] of integers, where the ith integer represents the position where an island is present, and an integer k (1 ≤ k… Read More »

Given two arrays a[] and b[], the task is to count the pairs (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number.Note that… Read More »

Given an array of N elements and you can perform two operations on it: Increase any of the array element by X once. Decrease any… Read More »

Given a binary array of N elements and two initial values a and b. We can cross the i-th element if: If a[i] == 0,… Read More »

Given an array arr[] of integers and an integer k, the task is to find the minimum number of integers that need to be removed… Read More »

Given an array of strings arr[] and two integers l and r, the task is to find the number of times the given string str… Read More »