1.

Consider the string “abbccbba”. What is the minimum number of insertions required to make the string a palindrome?(a) 0(b) 1(c) 2(d) 3The question was posed to me in a national level competition.The above asked question is from Minimum Insertions to form a Palindrome topic in portion Dynamic Programming of Data Structures & Algorithms II

Answer»

The CORRECT answer is (a) 0

The best I can explain: The GIVEN string is ALREADY a palindrome. So, no INSERTIONS are REQUIRED.



Discussion

No Comment Found

Related InterviewSolutions