Explanation: the string can be converted to “efgfe” by inserting “f” or to “egfge” by inserting “g”. thus, only one insertion is required.
Q. In the worst case, the minimum number of insertions to be made to convert the string into a palindrome is equal to the length of the string.
β
Correct Answer: (B)
false
Explanation by: Mr. Dubey
the string can be converted to “efgfe” by inserting “f” or to “egfge” by inserting “g”. thus, only one insertion is required.
Discussion
Question Analytics
976
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
80%
Success Rate