

MCQOPTIONS
Saved Bookmarks
1. |
What is the space complexity of the above dynamic programming implementation to find the longest palindromic subsequence where the length of the string is n?$ |
A. | O(n) |
B. | O(1) |
C. | O(n<sup>2</sup>) |
D. | None of the mentioned |
Answer» B. O(1) | |