## Sum of Bitwise-OR of all Submatrices

Given a NxN matrix, the task is to find the sum of bit-wise OR of all of its rectangular sub-matrices. 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
- k-th missing element in an unsorted array

Given a NxN matrix, the task is to find the sum of bit-wise OR of all of its rectangular sub-matrices. Examples: Input : arr[][] =… Read More »

Given a NxN matrix, the task is to find the sum of bit-wise AND of all of its rectangular sub-matrices. Examples: Input : arr[][] =… Read More »

Given an array arr[] of n integers. The task is to find the maximum length of the sub-array which has the maximum average value (average… Read More »

Given a character array arr[] containing only lowercase English alphabets, the task is to print the maximum length of the subarray such that the first… Read More »

Given an array arr[] of positive integers and an integer x, the task is to minimize the sum of elements of the array after performing… Read More »

Given an array A[], the task is to find the minimum number of operations required to convert the array into B[] such that for every… Read More »

Given an array of N numbers, the task is to find the number of sub-arrays (size of the sub-array should be an even number) of… Read More »

Given an array of n integers. The task is to find the maximum length of the sub-array such that absolute difference between all the consecutive… Read More »

Given an array of N integers. The task is to eliminate the minimum number of elements such that in the resulting array the sum of… Read More »

Given an array arr[] and an integer k, the task is to find the maximum product from the array such that the frequency sum of… Read More »

Given an array arr[] of N elements, the task is to find the length of the longest sub-sequence in arr[] such that all the elements… Read More »

Given an array arr[], the task is to count the number of elements from the array which divide the sum of all other elements. Examples:… Read More »

Given N boxes with their capacities which denotes the total number of boxes that it can hold above it. You can stack up the boxes… Read More »

Given an array A containing N elements (N is divisible by 3), the task is to split the numbers into groups of 3, let the… Read More »

Given an array containing N elements, each element is either 1 or 2. The task is to find out whether the array can be divided… Read More »