## Length of longest common subsequence containing vowels

Given two strings X and Y of length m and n respectively. The problem is to find the length of the longest common subsequence of… Read More »

Given two strings X and Y of length m and n respectively. The problem is to find the length of the longest common subsequence of… Read More »

Given a number N. The task is to find the number of permutations of 1 to N such that no three terms of the permutation… Read More »

Given a string containing only two characters i.e. R and K (like RRKRRKKKKK). The task is to find the maximum value of N for a… Read More »

Given an array of N positive integers and Q queries consisting of an integer K, the task is to print the length of the longest… Read More »

Given an array of N positive integers write an efficient function to find the sum of all those integers which can be expressed as the… Read More »

Given a string, the task is to check if there exist two equal sub-sequences in the given string. Two sub-sequences are said to be equal… Read More »

Given an array of integers, find number of subsequence such that the sum of the subsequence is divisible by m. It is given that sum… Read More »

Given a non-empty string S containing only lowercase letters, print all ‘Special Subsequences’ of S. For Instance, “ab” has the following Special Subsequences-: { “A”,… Read More »

Given two numbers X and d where X represents the number of non empty subsequences and d represents the difference. Output an array of size… Read More »

Given a string of length n of capital letters. The task is to find the count of ‘GFG’ subsequence in the given string. Examples: Input… Read More »

Given a string S of only small English letters. We need to transform the string by making some number of moves (any number of times)… Read More »

Given a number as string s, find the sum of all the elements present in all possible subsequences of s. Examples : Input : s… Read More »

Given a string ‘s’ and an integer k, find other string ‘t’ such that ‘t’ is the largest subsequence of given string ‘s’ and each… Read More »

Given two strings, find the length of longest uncommon subsequence of the two strings. The longest uncommon subsequence is defined as the longest subsequence of… Read More »

Given a sequence, find the length of the longest palindromic subsequence in it. Examples: Input : abbaab Output : 4 Input : geeksforgeeks Output :… Read More »