The Longest Palindromic Subsequence (LPS) problem is the problem of finding the longest subsequences of a string that is also a palindrome.
The longest common substring problem is the problem of finding the longest string (or strings) that is a substring (or are substrings) of two strings.
Given two sequences, print all the possible longest common subsequences present in them.
Write space optimized version of LCS problem.
The longest common subsequence (LCS) problem is the problem of finding the longest subsequence that is present in given two sequences in the same order. i.e. find a longest sequence which can be obtained from the first original sequence by deleting some items, and from the second original sequence by deleting other items.
Given a string, find all combinations of non-overlapping substrings of it. The solution should use parenthesis to split the string into non-overlapping substrings.
Given a positive number N, efficiently generate all binary numbers between 1 to N.
Print all N-digit binary numbers with k-bits set where k ranges from 1 to N. Numbers with same number of bits set should be printed together and in ascending order.
Given a positive number n, find all strings of length n containing balanced parentheses.
Lexicographically minimal string rotation or lexicographically least circular substring is the problem of finding the rotation of a string possessing the lowest lexicographical order of all such rotations.
Given a string sorted in ascending order, find all lexicographically next permutations of it.
Given a string containing all distinct characters, find all permutations of it.
Given a string, find the longest substring of given string containing distinct characters.
Find all substrings of a string that contains all characters of another string. In other words, find all substrings of first string that are anagrams of second string.