This category is for logical grouping only. It needn’t to be added directly. Instead, the sub-categories should be added.

## Find the element having maximum premutiples in the array

Given an array arr[], the task is to find the element which has the maximum number of pre-multiples present in the set. For any index… Read More »

## Print all maximal increasing contiguous sub-array in an array

Given an array arr[], the task is to find all the maximal contiguous increasing subarray in a given array. Examples: Input: arr[] = { 80,… Read More »

## Minimum time to burn a Tree starting from a Leaf node

Given a binary tree and a leaf node from this tree. It is known that in 1s all nodes connected to a given node (left… Read More »

## Longest equal substring with cost less than K

Given two string X and Y of the same length which consists of lowercase letters and also an integer K. The task is to find… Read More »

## Find triplet with minimum sum

Given an array of distinct integers arr[]. The task is to find a triplet(a group of 3 elements) that has the minimum sum. Note: The… Read More »

## Array formed from difference of each element from the largest element in the given array

Given an array arr[], the task is to find the array formed from the difference of each element from the largest element in the given… Read More »

## Count of non decreasing arrays of length N formed with values in range L to R

Given are integers N, L and R, the task is to count the number of non decreasing arrays of length N formed with values in… Read More »

## Arrange the array such that upon performing given operations an increasing order is obtained

Given an array arr[] of size N, the task is to print the arrangement of the array such that upon performing following operations on this… Read More »

## Minimum decrement operations to make Array elements equal by only decreasing K each time

Given an array arr[] of size N consisting of positive integers and an integer K, the task is to find the minimum number of steps… Read More »

## Length of longest Palindromic Subsequence of even length with no two adjacent characters same

Given a string str, the task is to find the length of the longest palindromic subsequence of even length with no two adjacent characters same… Read More »

## Count of Subsets of a given Set with element X present in it

Given an array arr[] of N unique positive integers and an element X, the tasks is to count the total possible number of subsets of… Read More »

## Add and Remove Edge in Adjacency List representation of a Graph

Prerequisites: Graph and Its Representation In this article, adding and removing edge is discussed in a given adjacency list representation. A vector has been used… Read More »

## Count of smaller elements on right side of each element in an Array using Merge sort

Given an array arr[] of N integers, the task is to count the number of smaller elements on the right side for each of the… Read More »

## Find K such that array A can be converted into array B by adding K to a selected range [L, R]

Given two arrays a[] and b[] of length N consisting of unique elements, the task is to find a number K (K > 0) such… Read More »

## Length of Longest Subarray with same elements in atmost K increments

Given an integer array arr and a number K, the task is to find the length of longest subarray such that all the elements in… Read More »