Problem: Minimum Appends for Palindrome!
Given a string A consisting of lowercase characters.
We need to tell minimum characters to be appended (insertion at end) to make the string A a palindrome.
1 <= |A| <= 105
A consists only of lower-case characters.
First argument is an string A.
Return a integer denoting the minimum characters to be appended (insertion at end) to make the string A a palindrome.
A = "abede"
A = "aabb"
We can make string palindrome as "abedeba" by adding ba at the end of the string.
We can make string palindrome as "aabbaa" by adding aa at the end of the string.
Code in CPP
If you have any questions or queries, feel free to drop a comment in the comments section below.
Note: Help us improve this blog
If you have a better solution, and you think you can help your peers to understand this problem better, then please drop your solution and approach in the comments section below.
We will upload your approach and solution here by giving you the proper credit so that you can showcase it among your peers.