- C++ map having key as a user define data type
- C++ set for user define data type
- Find (a^b)%m where 'b' is very large
- Kth smallest element after every insertion
- Pair with minimum absolute difference after solving each query
- Multi-set for user defined data type
- Modulo power for large numbers represented as strings
- Program to find sum of the given sequence
- Sum of Area of all possible square inside a rectangle
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Maximum number of pieces in N cuts
- Find Nth term (A matrix exponentiation example)
- Find Multiples of 2 or 3 or 5 less than or equal to N
- Find minimum number of Log value needed to calculate Log upto N
- Puzzle | Minimum distance for Lizard
- Area of squares formed by joining mid points repeatedly
- Find sum of the series ?3 + ?12 +......... upto N terms
- Ratio of mth and nth term in an Arithmetic Progression (AP)
- Program to Find the value of cos(nΘ)
- Program to find the value of tan(nΘ)
- Program to find the value of sin(nΘ)
- Sum of the numbers upto N that are divisible by 2 or 5
- Hammered distance between N points in a 2-D plane
- Program to find the angles of a quadrilateral
- Find the unit place digit of sum of N factorials
- Find last two digits of sum of N factorials
- Seating arrangement of n boys and girls alternatively around a round table
- Arrangement of words without changing the relative position of vowel and consonants
- Minimum squares to evenly cut a rectangle
- String matching with * (that matches with any) in any of the two strings
- Maximum points of intersection n lines
- Minimize Cost with Replacement with other allowed
- Primality test for the sum of digits at odd places of a number
- Array elements with prime frequencies
- Number of sub-arrays that have at least one duplicate
- Minimize the value of N by applying the given operations
- Smallest prime number missing in an array
- Game of stones
- Find the missing elements from 1 to M in given N ranges
- Find the missing elements from 1 to M in given N ranges | Set-2
- Check whether the sum of prime elements of the array is prime or not
- Element equal to the sum of all the remaining elements
- Subtraction in the Array
- Average of remaining elements after removing K largest and K smallest elements from array
- Find numbers a and b that satisfy the given conditions
- Count sub-sets that satisfy the given condition
- Largest palindromic prime in an array
- Check if the string satisfies the given condition
- Maximum number of removals of given subsequence from a string
- Program to check if a number is divisible by sum of its digits

- Palindrome Partitioning | DP-17
- Word Wrap Problem | DP-19
- Subset Sum Problem | DP-25
- Optimal Strategy for a Game | DP-31
- Remove minimum elements from either side such that 2*min becomes more than max
- Boolean Parenthesization Problem | DP-37
- How to print maximum number of A's using given four keys
- Collect maximum points in a grid using two traversals
- Find length of the longest consecutive path from a given starting character
- Total number of non-decreasing numbers with n digits
- Find maximum of minimum for every window size in a given array
- Count even length binary sequences with same sum of first and second half bits
- Find the longest path in a matrix with given constraints
- Find minimum possible size of array with given rules for removing elements
- Count number of ways to divide a number in 4 parts
- Count number of subsets having a particular XOR value
- Convert from any base to decimal and vice versa
- Find minimum adjustment cost of an array
- Longest Geometric Progression
- Implement rand3() using rand2()
- Maximum games played by winner
- Minimum Cost To Make Two Strings Identical
- A Space Optimized DP solution for 0-1 Knapsack Problem
- Non-crossing lines to connect points in a circle
- Maximum decimal value path in a binary matrix
- The painter's partition problem
- Minimum number of elements which are not part of Increasing or decreasing subsequence in array
- Minimum operations required to remove an array
- Number with maximum number of prime factors
- Temple Offerings
- Program to add two polynomials
- Clustering/Partitioning an array such that sum of square differences is minimum
- Minimum number of deletions and insertions to transform one string into another
- Matrix Multiplication | Recursive
- Sequences of given length where every element is more than or equal to twice of previous
- Sum of product of all pairs of array elements
- Shuffle a deck of cards
- Program to calculate the value of sin(x) and cos(x) using Expansion
- Randomized Binary Search Algorithm
- Find the Longest Increasing Subsequence in Circular manner
- Check if an array represents Inorder of Binary Search tree or not
- Paper Cut into Minimum Number of Squares | Set 2
- Given a number as a string, find the number of contiguous subsequences which recursively add up to 9 | Set 2
- Find length of longest subsequence of one string which is substring of another string
- Master Theorem For Subtract and Conquer Recurrences
- Print triplets with sum less than or equal to k
- Minimum sum of differences with an element in an array
- Find any one of the multiple repeating elements in read only array
- Queries on XOR of greatest odd divisor of the range
- Subarray with XOR less than k
- Minimize cost of operation to equalize tower heights
- Find if an array contains a string with one mismatch
- Count subarrays with equal number of occurrences of two given elements
- Count all triplets whose sum is equal to a perfect cube
- Maximize the binary matrix by filpping submatrix once
- Sort string of characters
- Minimum cells required to reach destination with jumps equal to cell values
- Longest Increasing Path in Matrix
- Count numbers in range such that digits in it and it's product with q are unequal
- Length of Longest Balanced Subsequence
- Maximum even sum subsequence
- Inner reducing pattern printing
- Given a large number, check if a subsequence of digits is divisible by 8
- Pair formation such that maximum pair sum is minimized
- Count number of even and odd elements in an array
- Minimum cost to make two strings identical by deleting the digits
- Maximum sum path in a matrix from top to bottom
- Largest divisible pairs subset
- Hosoya's Triangle
- Range Query on array whose each element is XOR of index value and previous element
- Check for possible path in 2D matrix
- Check if the given number K is enough to reach the end of an array
- Check if it is possible to transform one string to another
- Sum of the alphabetical values of the characters of a string
- Balanced expressions such that given positions have opening brackets
- Check if two strings are permutation of each other
- Minimal moves to form a string by adding characters or appending string itself
- Maximum Subarray Sum Excluding Certain Elements
- Dynamic Programming | Wildcard Pattern Matching | Linear Time and Constant Space
- Maximum sum increasing subsequence from a prefix and a given element after prefix is must
- Making elements of two arrays same with minimum increment/decrement
- Counting values greater than equal to x after increments
- Find Sum of all unique sub-array sum for a given array.
- Number of ways to merge two arrays such retaining order
- Number of circular tours that visit all petrol pumps
- Convert the array such that the GCD of the array becomes 1
- Check whether a given number is Polydivisible or Not
- Smallest number with given sum of digits and sum of square of digits
- Remove leading zeros from an array
- Number of Larger Elements on right side in a string
- Sum of array elements excluding the elements which lie between a and b
- Sort an array where a subarray of a sorted array is in reverse order
- Check if two same sub-sequences exist in a string or not
- Range product queries in an array
- Majority Element | Set-2 (Hashing)
- Number of Permutations such that no Three Terms forms Increasing Subsequence
- Minimum number of changes required to make the given array an AP
- Balanced expressions such that given positions have opening brackets | Set 2
- Smallest power of 2 which is greater than or equal to sum of array elements
- Matrix Chain Multiplication (A O(N^2) Solution)
- Find the sum of the series x(x+y) + x^2(x^2+y^2) +x^3(x^3+y^3)+ ... + x^n(x^n+y^n)
- Find sum of the series ?3 + ?12 +......... upto N terms
- Ratio of mth and nth term in an Arithmetic Progression (AP)
- Program to Find the value of cos(nΘ)
- Program to find the value of tan(nΘ)
- Program to find the value of sin(nΘ)
- Program to find the angles of a quadrilateral
- Check if it is possible to return to the starting position after moving in the given directions
- Find the unit place digit of sum of N factorials
- Find last two digits of sum of N factorials
- Seating arrangement of n boys and girls alternatively around a round table
- Arrangement of words without changing the relative position of vowel and consonants
- Minimum number of Parentheses to be added to make it valid
- Remove elements from the array which appear more than k times
- Replace every elements in the array by its frequency in the array
- Remove elements from the array whose frequency lies in the range [l, r]
- Ways of selecting men and women from a group to make a team
- Primality test for the sum of digits at odd places of a number
- Array elements with prime frequencies
- Number of words in a camelcase sequence
- Minimum cost to reach a point N from 0 with two different operations allowed
- Absolute Difference of even and odd indexed elements in an Array
- Count occurrences of a character in a repeated string
- Sort elements of array whose modulo with K yields P
- Find number of substrings of length k whose sum of ASCII value of characters is divisible by k
- Move all Uppercase char to the end of string
- Sum of integers upto N with given unit digit
- Closest perfect square and its distance
- Count of numbers which can be made power of 2 by given operation
- Remove exactly one element from the array such that max - min is minimum
- Check whether a + b = c or not after removing all zeroes from a,b and c
- Apothem of a n-sided regular polygon
- Number of ways to remove a sub-string from S such that all remaining characters are same
- Replace the maximum element in the array by coefficient of range