@@ -3254,6 +3254,15 @@ We can clearly see that this problem follows the <b>[Fibonacci number pattern](#
32543254
32553255
32563256# Pattern 4: Palindromic Subsequence
3257+ ## Problem Set
3258+ - [Longest Palindromic Subsequence](#longest-palindromic-subsequence)
3259+ - [👩🏽🦯 🌴 Longest Palindromic Substring](#👩🏽🦯-🌴-longest-palindromic-substring)
3260+ - [👩🏽🦯 Count of Palindromic Substrings](#👩🏽🦯-count-of-palindromic-substrings)
3261+ - [🔎 Minimum Deletions in a String to make it a Palindrome](#🔎-minimum-deletions-in-a-string-to-make-it-a-palindrome)
3262+ - [Minimum insertions in a string to make it a palindrome](#1-minimum-insertions-in-a-string-to-make-it-a-palindrome)
3263+ - [Find if a string is K-Palindromic](#2-find-if-a-string-is-k-palindromic)
3264+ - [Palindromic Partitioning](#palindromic-partitioning)
3265+
32573266## Longest Palindromic Subsequence
32583267https://leetcode.com/problems/longest-palindromic-subsequence/
32593268> Given a <b>sequence</b>, find the length of its <b>Longest Palindromic Subsequence (LPS)</b>. In a <b>palindromic subsequence</b>, <i>elements read the same backward and forward</i>.
@@ -4184,6 +4193,21 @@ console.log(`Minimum palindrome partitions ---> ${findMPPCuts('madam')}`);
41844193- The <b>time and space complexity</b> of the above algorithm is ` O (n²)` , where ` n` is the length of the input string.
41854194
41864195# Pattern 5: Longest Common Substring
4196+ ## Problem Set
4197+ - [Longest Common Substring](#longest-common-substring)
4198+ - [🔎 Longest Common Subsequence](#🔎-longest-common-subsequence)
4199+ - [Minimum Deletions & Insertions to Transform a String into another](#minimum-deletions--insertions-to-transform-a-string-into-another)
4200+ - [👩🏽🦯 🔎 Longest Increasing Subsequence](#👩🏽🦯-🔎-longest-increasing-subsequence)
4201+ - [Maximum Sum Increasing Subsequence](#maximum-sum-increasing-subsequence)
4202+ - [Shortest Common Super-sequence](#shortest-common-super-sequence)
4203+ - [Minimum Deletions to Make a Sequence Sorted](#minimum-deletions-to-make-a-sequence-sorted)
4204+ - [Longest Repeating Subsequence](#longest-repeating-subsequence)
4205+ - [Subsequence Pattern Matching](#subsequence-pattern-matching)
4206+ - [Longest Bitonic Subsequence](#longest-bitonic-subsequence)
4207+ - [Longest Alternating Subsequence](#longest-alternating-subsequence)
4208+ - [🔎 Edit Distance](#🔎-edit-distance)
4209+ - [🔎 Strings Interleaving](#🔎-strings-interleaving)
4210+
41874211## Longest Common Substring
41884212https://www.geeksforgeeks.org/longest-common-substring-dp-29/
41894213> Given two strings ` str1` and ` str2` , find the length of the longest <b>substring</b> which is common in both the strings.
@@ -4665,6 +4689,20 @@ findMDI('passport', 'ppsspt');
46654689## 👩🏽🦯 🔎 Longest Increasing Subsequence
46664690https://leetcode.com/problems/longest-increasing-subsequence/
46674691
4692+ > Given a number ` sequence` , find the length of its <b>Longest Increasing Subsequence (LIS)</b>. In an <b>increasing subsequence</b>, <i>all the elements are in increasing order (from lowest to highest)</i>.
4693+
4694+ ### Example 1:
4695+ ` ` ` js
4696+ Input: {4 ,2 ,3 ,6 ,10 ,1 ,12 }
4697+ Output: 5
4698+ Explanation: The LIS is {2 ,3 ,6 ,10 ,12 }.
4699+ ` ` `
4700+ ### Example 2:
4701+ ` ` ` js
4702+ Input: {- 4 ,10 ,3 ,7 ,15 }
4703+ Output: 4
4704+ Explanation: The LIS is {- 4 ,3 ,7 ,15 }.
4705+ ` ` `
46684706## Maximum Sum Increasing Subsequence
46694707https://www.geeksforgeeks.org/maximum-sum-increasing-subsequence-dp-14/
46704708
0 commit comments