## Largest subset having with sum less than equal to sum of respective indices

Given an array arr[], the task is to find the length of the largest subset with the sum of elements less than or equal to… Read More »

- Number of pairs in an array with the sum greater than 0
- Check if sum of Fibonacci elements in an Array is a Fibonacci number or not
- Check if an array is sorted and rotated using Binary Search
- Minimize the maximum difference of adjacent elements after at most K insertions
- Find lexicographically smallest string in at most one swaps
- What is a Webcrawler and where is it used?
- Longest permutation subsequence in a given array
- 0/1 Knapsack Problem to print all possible solutions
- Check if a given number is a Perfect square using Binary Search
- Minimum window size containing atleast P primes in every window of given range
- Maximum size of square such that all submatrices of that size have sum less than K
- Replace every element with the smallest of the others
- Design a Queue data structure to get minimum or maximum in O(1) time
- Longest subarray such that difference of max and min is at-most K
- Check if an Array is a permutation of numbers from 1 to N
- Paranthesis Theorem
- Check if minimum element in array is less than or equals half of every other element
- Length of Longest Subarray with same elements in atmost K increments
- Find subarray of Length K with Maximum Peak
- Rank of all elements in a Stream in descending order when they arrive
- Leftmost Column with atleast one 1 in a row-wise sorted binary matrix
- std::string::find_last_of in C++ with Examples
- Minimum and Maximum of all subarrays of size K using Map
- Smallest Palindromic Subsequence of Even Length in Range [L, R]
- D'Esopo-Pape Algorithm : Single Source Shortest Path
- Maximum sum subarray having sum less than or equal to given sum using Set
- Real time optimized KMP Algorithm for Pattern Searching
- XOR of pairwise sum of every unordered pairs in an array
- Largest value of x such that ax
^{x}is N-digit number of base b - Maximum count number of valley elements in a subarray of size K

Given an array arr[], the task is to find the length of the largest subset with the sum of elements less than or equal to… Read More »

Given an array arr[] of size N and integer Y, the task is to find a minimum of all the differences between the maximum and… Read More »

Given the constants of quadratic equation F(x) = Ax2 + Bx + C as A, B, and C and an integer K, the task is… Read More »

Given an array arr[] of size N and a matrix Q consisting of queries of the following two types: 1 L R : Print the… Read More »

Prerequisites: Policy based data structure, Sliding window technique. Given an array of integer arr[] and an integer K, the task is to find the median… Read More »

Given an array arr[] of length N and an integer K, the task is to find the longest subarray with difference between any two distict… Read More »

Given a squared matrix M[ ][ ] of N * N dimensions, the task is to find the Kth diagonal of the matrix, starting from… Read More »

Given an array freq[] which stores the frequency of N integers from 0 to N – 1. The task is to construct a sequence where… Read More »

Given an integer array arr[] of size N, the task is to find the minimum distance between any most and least frequent element of the… Read More »

Given two postive integers L and R, the task is to print the numbers in the range [L, R] which have their digits in strictly… Read More »

Given a string str and an integer K, the task is to find a string S such that it has exactly K subsequences of given… Read More »

Given an array arr[] of N integers, the task is to replace each element of Array with their rank in array. The rank of an… Read More »

Given an array arr[] consisting of N positive integers, the task is to print all pairs of array elements whose sum does not exist in… Read More »

Given an array arr[] of N positive integers and a positive integer M, the task is to find the length of longest subset whose smallest… Read More »

Prerequisites: Diameter of a N-ary tree Path between two nodes in a graph Given a N-ary tree with N nodes numbered from 0 to N-1… Read More »