ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which of the following lines should be added to complete the code?
Correct Answer: D — len - arr[len][len]
arr[len][len] contains the length of the longest palindromic subsequence. So, len - arr[len][len] gives the minimum number of insertions required to form a palindrome.