## Sum of minimum element of all subarrays of a sorted array

Given a sorted array A of n integers. The task is to find the sum of minimum of all possible subarrays of A. Examples: Input:… Read More »

- Remove duplicates from unsorted array
- Coin game of two corners (Greedy Approach)
- Sort elements by frequency | Set 5 (using Java Map)
- Minimum number of swaps required to sort an array | Set 2
- Design a Hit Counter
- MakeMyTrip Interview Experience 2019
- Next greater element in same order as input
- Minimum number of items to be delivered
- Program to find the Hidden Number
- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Longest subarray having maximum sum
- Count distinct elements in an array
- Calculate the total fine to be collected
- Program for K Most Recently Used (MRU) Apps
- Check whether an Array is Subarray of another Array
- Program to check if an array is palindrome or not using Recursion
- Largest palindromic number in an array
- Check if an array is sorted and rotated
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- Sum of all odd frequency elements in an array
- How do Dynamic arrays work?
- Multidimensional Arrays in Java
- Generating subarrays using recursion
- Coviam Software Developer Internship Experience
- Find triplets in an array whose AND is maximum
- Convert a String to Integer Array in C/C++
- For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
- Length of the longest Subarray with only Even Elements
- Minimum operations required to make all the array elements equal

Given a sorted array A of n integers. The task is to find the sum of minimum of all possible subarrays of A. Examples: Input:… Read More »

This article implementing Arrays using JavaScript. An Array is a simple data Structure, in which elements are stored in contiguous memory locations. Implementation of arrays… Read More »

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 »