Which of the following lines completes the above code?
strrev(str2)
str2 = str1
len2 = strlen(str2)
strlen(str2)
Correct Answer: A — strrev(str2)
Explanation:
To find the longest palindromic subsequence, we need to reverse the copy of the string, which is done by strrev.