Topic: Dynamic Programming Problem / Level: intermediate

Problem: Find the minimum number of insertions needed to make a string a palindrome where each insertion has a variable cost using dynamic programming.

Run the code to see the output here...