File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3797,26 +3797,26 @@ console.log(
37973797### Similar problems
37983798Here are a couple of similar problems:
37993799
3800- #### 1. Minimum insertions in a string to make it a palindrome
3800+ ## 1. Minimum insertions in a string to make it a palindrome
38013801https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome/
38023802
38033803Will the above approach work if we make insertions instead of deletions?
38043804
38053805Yes, the length of the <b>Longest Palindromic Subsequence</b> is the best <i>palindromic subsequence</i> we can have. Let’s take a few examples:
38063806
3807- ##### Example 1:
3807+ ### Example 1:
38083808` ` ` js
38093809Input: " abdbca"
38103810Output: 1
38113811Explanation: By inserting “c”, we get a palindrome “acbdbca”.
38123812` ` `
3813- ##### Example 2:
3813+ ### Example 2:
38143814` ` ` js
38153815Input: = " cddpd"
38163816Output: 2
38173817Explanation: Inserting “cp”, we get a palindrome “cdpdpdc”. We can also get a palindrome by inserting “dc”: “cddpddc”
38183818` ` `
3819- ##### Example 3:
3819+ ### Example 3:
38203820` ` ` js
38213821Input: = " pqr"
38223822Output: 2
@@ -3887,7 +3887,7 @@ console.log(
38873887// Output: 5
38883888// Explanation: Inserting 5 characters the string becomes "leetcodocteel".
38893889` ` `
3890- #### 2. Find if a string is K-Palindromic
3890+ ## 2. Find if a string is K-Palindromic
38913891https://leetcode.com/problems/valid-palindrome-iii/
38923892
38933893Any string will be called ` K ` <b>-palindromic</b> if it can be transformed into a <i>palindrome</i> by removing at most ` K ` characters from it.
You can’t perform that action at this time.
0 commit comments