1.

Longest palindromic subsequence is an example of ______________(a) Greedy algorithm(b) 2D dynamic programming(c) 1D dynamic programming(d) Divide and conquerI got this question in an internship interview.This interesting question is from Longest Palindromic Subsequence topic in section Dynamic Programming of Data Structures & Algorithms II

Answer»

Correct option is (B) 2D dynamic PROGRAMMING

For EXPLANATION: Longest PALINDROMIC SUBSEQUENCE is an example of 2D dynamic programming.



Discussion

No Comment Found

Related InterviewSolutions