# Category Archives: Arrays

Given an array arr of integers of size N, the task is to find a subsequence in which upon reversing the order, the maximum sum… Read More
Given two maps map1 and map2 having a string as the key and arrays of integers as values, the task is to merge them in… Read More
Given an array arr (1-based indexing) of length N and an integer X, the task is to find and print all index ranges having a… Read More
Given an integer N denoting the size of an array and the bitwise AND (K) of all elements of the array. The task is to determine… Read More
Given an array A of size n, the task is to check if the array can be sorted in increasing order, if the only operation… Read More
Given an array arr[] of size N, the task is to find the number of pairs of the array upon removing which the mean (i.e.… Read More
Given two numeric strings S and Target, and integers X, M. The task is to check if string S can be converted into string Target… Read More
Given an array arr of length N and two integers K and X. For every element arri in the array, if arri > 0 then… Read More
Given an array arr of length N, the task is to find the minimum number of operations required to make all array elements 0, except… Read More
Given an array arr[] of N integers. Arrange the array in a way such that the minimum distance among all pairs of same elements is… Read More
Given an array height[] which represents the height of N people standing in a line. A person i can see a person j if height[j]… Read More
Given two arrays of strings SearchWord[] and FindWord[]. The task is to check how many strings in FindWord[] can be formed after the following operations… Read More
Given an array B, and two integers N, X (2 ≤ X ≤ 100). Initially, array arr has all its values as zero. The task… Read More
Given an array A[] of size N, find two Sub-sequences a and b, such that the sum of the average of two subsequences is maximized… Read More
Suffix Sum ArrayGiven an array arr[] of size N, the task is to compute and return its suffix sum array.  Suffix Sum is a precomputation… Read More