cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

No of insertions to make to a string to make it a palindrome

Open Arunraj97 opened this issue 9 years ago • 4 comments

For eg:- If the string is aba no of insertions is 0 ------do-------- ab no is insertions is 1( we have to add a to make it pallindrome)
Hint: It is a dynamic programming algorithm

Arunraj97 avatar Oct 05 '17 13:10 Arunraj97

I am implementing it in C++.

AK-007 avatar Oct 05 '17 13:10 AK-007

where should i add the file?

AK-007 avatar Oct 05 '17 14:10 AK-007

The code should be placed under the minimum_insertion_palindrome folder within the dynamic_programming folder 👍

You need to create the folder 👍

AdiChat avatar Oct 05 '17 14:10 AdiChat

PR #590 Implemented using C++ :)

AK-007 avatar Oct 05 '17 15:10 AK-007