## 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 »

- Sort an array without changing position of negative numbers
- Nth number whose sum of digit is multiple of 10
- Given two arrays count all pairs whose sum is an odd number
- Find maximum xor of k elements in an array
- Find minimum difference between any two elements | Set 2
- What is Competitive Programming and How to Prepare for It?
- Why Should I Learn Coding?
- Check whether two strings contain same characters in same order
- Total number of possible Binary Search Trees using Catalan Number
- Maximize the happiness of the groups on the Trip
- Find the number of pair of Ideal nodes in a given tree
- Find the minimum number of elements that should be removed to make an array good
- Sum of digits with even number of 1's in their binary representation
- Lexicographically Smallest Topological Ordering
- Find sub-arrays from given two arrays such that they have equal sum
- Count of all possible values of X such that A % X = B
- Equal Sum and XOR of three Numbers
- Check which player visits more number of Nodes
- Find the Nth Mosaic number
- Count of integers in a range which have even number of odd digits and odd number of even digits
- Optimally accommodate 0s and 1s from a Binary String into K buckets
- Check whether a number can be represented as sum of K distinct positive integers
- Longest string in an array which matches with prefix of the given string
- Generate elements of the array following given conditions
- Make the list non-decreasing by changing only one digit of the elements
- Find the maximum possible value of a[i] % a[j] over all pairs of i and j
- Count of strings whose prefix match with the given string to a given length k
- Find the time which is palindromic and comes after the given time
- Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
- Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)

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 »

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 »

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 »

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 »

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

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 »

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 »

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 »

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 »

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

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 »

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 »

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 »

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 »

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 »