## Count subarrays with all elements greater than K

Given an array of N integers and a number K, the task is to find the number of subarrays such that all elements are greater… Read More »

## Maximum number of contiguous array elements with same number of set bits

Given an array with n elements. The task is to find the maximum number of contiguous array elements which have the same number of set… Read More »

## Longest subarray in which all elements are greater than K

Given an array of N integers and a number K, the task is to find the length of the longest subarray in which all the… Read More »

## Number of segments where all elements are greater than X

Given an array of N integers and a number X, the task is to find the number of segments such that all elements in the… Read More »

## Remove elements from the array whose frequency lies in the range [l, r]

Given an array of integers, remove the elements from the array whose frequency lies in the range [l, r]. Examples: Input : arr[] = {… Read More »

## Find the k smallest numbers after deleting given elements

Given an array of integers, find the k smallest numbers after deleting given elements. In case of repeating elements delete only one instance in the… Read More »

## Find the k largest numbers after deleting the given elements

Given an array of integers, find the k largest number after deleting the given elements. In case of repeating elements, delete one instance for every… Read More »

## Check if a string contains a palindromic sub-string of even length

S is string containing only lowercase English alphabets. We need to find if there exists at least one palindromic sub-string whose length is even. Examples:… Read More »

## Remove elements from the array which appear more than k times

Given an array of integers, remove all the occurrences of those elements which appear strictly more than k times in the array. Examples: Input :… Read More »

## Largest factor of a given number which is a perfect square

Given a number . The task is to find the largest factor of that number which is a perfect square. Examples: Input : N =… Read More »

## Program to make Indian Flag in Python | Step by Step

Here, We’ll be making Indian Flag in Python using Spyder tool which is a part of Anaconda interface. It is the beginner’s practice problem for… Read More »

## Lexicographically largest string formed from the characters in range L and R

Given a string S and a range L and R, the task is to print the lexicographically largest string that can be formed from the… Read More »

## Tree with N nodes and K leaves such that distance between farthest leaves is minimized

Given N and K, print a tree such that the tree has no more than K leaf nodes and every other node has at least… Read More »

## N-th character in the string made by concatenating natural numbers

Given an integer N, the task is to find the N-th character in the string made by concatenating natural numbers (Integers beginning from 1). The… Read More »

## Range queries to count 1s in a subarray after flip operations

Given an array ‘arr’ all the numbers of which are initialized to ‘0’ then the array can be updated at any time in the following… Read More »