Loading practice questions
Consider the string "efge". What is the minimum number of insertions required to make the string a palindrome?
(B) 1
Explanation:
The string can be converted to "efgfe" by inserting "f" or to "egfge" by inserting "g". Thus, only one insertion is required.