## Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i

Given an array arr[] of non-negative integers. We have to delete elements from this array such that arr[i + 1] > arr[j] for each valid… Read More »

- MakeMyTrip Interview Experience 2019
- Make all numbers of an array equal
- Count distinct elements in an array
- Reach the numbers by making jumps of two given lengths
- Check whether an Array is Subarray of another Array
- Largest palindromic number in an array
- Sum of XOR of all subarrays
- Program for K Most Recently Used (MRU) Apps
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- Coviam Software Developer Internship Experience
- 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
- Find k closest numbers in an unsorted array
- Smallest Pair Sum in an array
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Maximum of all Subarrays of size k using set in C++ STL
- Count of pairs (x, y) in an array such that x < y
- Number of pairs whose sum is a power of 2
- Count pairs in array whose sum is divisible by K
- Amazon Internship Interview Experience
- Minimum elements to be removed such that sum of adjacent elements is always even
- k-th missing element in an unsorted array
- Length of the longest alternating subarray
- Count array elements that divide the sum of all other elements
- Number of array elements derivable from D after performing certain operations
- Number of unique pairs in an array
- Remove minimum elements from either side such that 2*min becomes more than max | Set 2
- Array Manipulation and Sum
- Python | Using 2D arrays/lists the right way

Given an array arr[] of non-negative integers. We have to delete elements from this array such that arr[i + 1] > arr[j] for each valid… Read More »

Given an array arr[] of N and Q queries consisting of a range [L, R]. the task is to find the bit-wise AND of all… Read More »

Given an array arr[] of N integers. The integers represent all the divisors of a number X except 1 and X itself. The task is… Read More »

Given an array arr[] of N and Q queries consisting of a range [L, R]. the task is to find the bit-wise OR of all… Read More »

Given an integer array arr[] of size N and an integer K, the task is to find the index which will be the last to… Read More »

Given a perfect binary tree of N nodes, with nodes having values from 1 to N as depicted in the image below and Q queries… Read More »

Given an integer array arr[] of length N consisting of positive integers, the task is to minimize the number of steps required to reach the… Read More »

Given a permutation P of first N natural numbers, the task is to count the index pairs (i, j) such that P[i] + P[j] =… Read More »

Given an array of positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be… Read More »

Given an array arr[] of N distinct integers, the task is to find the maximum elements in an interval [L, R] such that the interval… Read More »

Problem statement: Consider a row of n coins of values v1 . . . vn, where n is even. We play a game against an… Read More »

Given an array arr[] of N positive integers and a non negative integer K. The task is to delete exactly K sub-arrays from the array… Read More »

Given an integer array arr[] of size N and an integer K, the task is to find the sub-array arr[i….j] where i ≤ j and… Read More »

Given an array arr[] of positive integers, the task is to sort the array in decreasing order of count of set bits in binary representations… Read More »