What is the time complexity of the brute force algorithm used to find the length of the longest palindromic subsequence?

What is the time complexity of the brute force algorithm used to find the length of the longest palindromic subsequence? Correct Answer O(2n)

In the brute force algorithm, all the subsequences are found and the length of the longest palindromic subsequence is calculated. This takes exponential time.

Related Questions

For which of the following, the length of the string is not equal to the length of the longest palindromic subsequence?
Which of the following methods can be used to solve the longest palindromic subsequence problem?
Longest palindromic subsequence is an example of ______________