Skip to content

Tag Archives: subsequence

Given a string S of valid parentheses sequence of length N and an even integer K, the task is to find the valid parentheses sequence… Read More
Given two arrays arr1[] and arr2[] of length N and M respectively, the task is to find the length of the longest common prime subsequence… Read More
Given two strings A and B, the task is to count the minimum number of operations required to convert the string A to B. In… Read More
Given two arrays A[] and B[], the task is to find the maximum number of uncrossed lines between the elements of the two given arrays.… Read More
There are some processes that need to be executed. The amount of load that process causes a server that runs it, is being represented by… Read More
String matching algorithms have greatly influenced computer science and play an essential role in various real-world problems. It helps in performing time-efficient tasks in multiple… Read More
Given an array arr[] having N integers. The task is to determine if the array can be partitioned into 3 subsequences of an equal sum… Read More
Given an array arr[] of size N, the task is to print the longest bitonic subsequence of the given array.Note: If more than one solution… Read More
Given two integers N and K, the task is to generate all positive integers with length N having an absolute difference of adjacent digits equal… Read More
Given a numeric string S, the task is to find the maximum length of a subsequence having its left rotation equal to its right rotation.… Read More
Given an array arr[] of N positive integers. The task is to find the length of the shortest sub-sequence such that the GCD of the… Read More
Given a string S, the task is to find the count of maximum occurring subsequence P from S using only those characters whose indexes are… Read More
Given an array arr[] of N integers, where N is an even number. The task is to divide the given N integers into two equals… Read More
Given an array of N distinct integers. For each lement the task is to find the count of subsequence from all the possible subsequence whose… Read More
Given an array a[] consisting of N integers, the task is to perform the following operations:   Select a subsequence and for every pth element of… Read More