Minimum Deletions to Make a Palindrome
Medium

Problem Statement

Find the minimum number of characters to delete from a string to make it a palindrome.

Examples

1Example 1
Input:
{ "s": "agbcba" }
Output:
1
2Example 2
Input:
{ "s": "aebcbda" }
Output:
2
3Example 3
Input:
{ "s": "geeksforgeeks" }
Output:
8
Loading...

Sign in to Run Code and Submit