Loading practice questions
Which of the following lines should be added to complete the code?
Correct Answer: D — len - arr[len][len]
Explanation:
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.