1.

Which of the following problems can be used to solve the minimum number of insertions to form a palindrome problem?(a) Minimum number of jumps problem(b) Longest common subsequence problem(c) Coin change problem(d) Knapsack problemsI got this question in quiz.My question is taken from Minimum Insertions to form a Palindrome topic in section Dynamic Programming of Data Structures & Algorithms II

Answer»

The CORRECT choice is (B) Longest COMMON subsequence PROBLEM

Easiest explanation - A variation of longest common subsequence can be used to solve the minimum number of insertions to FORM a palindrome problem.



Discussion

No Comment Found

Related InterviewSolutions