1.

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

A. O(1)
B. O(2<sup>n</sup>)
C. O(n)
D. O(n<sup>2</sup>)
Answer» C. O(n)


Discussion

No Comment Found