Posts

Showing posts from February, 2019

Interesting Problems

Find the minimum length of unsorted array to make the whole array as sorted Rearrange a string such that all the same characters be atleast 'd' distant apart from each other Check if a given number is prime or not Generate all the prime factors of a given number Find the longest common subsequence of two strings [DP] Find the longest common substring of two given strings Find the longest substring with all distinct characters possible Find the longest common prefix in a given set of strings Find the longest palindromic Subsequence of a given string  Find the longest possible palindrome in a given string Find the maximum sum increasing Subsequence Find the longest increasing subsequence Find the longest bitonic subsequence Find the longest consecutive subsequence Find the longest repeated subsequence Find the longest increasing path in a given matrix Find the longest increasing path with difference of 1 in a given matrix Find the smallest string that contains