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

Thành Nguyễn

New member
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$^{n}$)
C. O(n)
D. O(n$^{2}$)
 

Tìm kiếm

Back
Top