Skip to content

Tag Archives: subsequence

Given a binary array arr[], the task is to find the maximum possible length of non-decreasing subsequence that can be generated by reversing a subarray… Read More
Given an array of strings arr[], the task is to find the maximum possible length of a string of distinct characters that can be generated… Read More
Given a numeric string s consisting of digits 0 to 9, the task is to find the length of the largest subsequence consisting of a… Read More
Given an array arr[] consisting of N integers, the task is to find the maximum count of decreasing subsequences possible from an array which satisfies… Read More
Given an array A[] of N integers and an integer K, the task is to select the maximum number of elements from the array whose… Read More
Given a string S and an integer K, the task is to find the total number of strings that can be formed by inserting exactly… Read More
Given two string S and T, the task is to find the minimum length prefix from S which consists of all characters of string T.… Read More
Given an array arr[], the task is to rearrange the array to generate maximum decreasing subsequences and print the count of the maximum number of… Read More
Given an array A[] consisting of N integers, the task is to find the total number of subsequence which contain only one distinct number repeated… Read More
Given an array arr[], the task is to fnd the sum of a subsequence which forms a perfect square. If there are multiple subsequences having… Read More
Given an integer array A[ ] of size N, the task is to find a subsequence of size B such that the minimum difference between… Read More
Given two arrays A[] and B[] consisting of strings, the task is to print the strings from array A[] having all strings in B[] as… Read More
Given an array arr[] of size N, consisting of positive and negative integers, the task is to find the longest alternating subsequence(i.e. the sign of… Read More
Given an array arr[] of N positive integers, the task is to find the length of the longest subsequence such that Bitwise XOR of all… Read More
Given an array arr[] of N positive integers, the task is to find the largest strictly increasing subsequence of arr[] such that the indices of… Read More