• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
August 21, 2024 0

PROBLEM OF THE DAY : 27/07/2024 | Form a Palindrome

Description
Discussion

Welcome to the daily solving of our PROBLEM OF THE DAY with Karan Mashru We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Dynamic Programming but also build up problem-solving skills. 

Given a string, find the minimum number of characters to be inserted to convert it to a palindrome.
 

Examples :

Input: str = "abcd"
Output: 3
Explanation: Inserted character marked with bold characters in dcbabcd, here we need minimum three characters to make it palindrome.

Give the problem a try before going through the video. All the best!!!
Problem Link: https://practice.geeksforgeeks.org/problems/form-a-palindrome1455/1