1.

The longest increasing subsequence problem is a problem to find the length of a subsequence from a sequence of array elements such that the subsequence is sorted in increasing order and it’s length is maximum. This problem can be solved using __________(a) Recursion(b) Dynamic programming(c) Brute force(d) Recursion, Dynamic programming, Brute forceThe question was asked in an international level competition.My doubt stems from Longest Increasing Subsequence in portion Dynamic Programming of Data Structures & Algorithms II

Answer»

The CORRECT choice is (d) Recursion, Dynamic PROGRAMMING, Brute force

The best explanation: The LONGEST increasing subsequence PROBLEM can be solved using all of the mentioned methods.



Discussion

No Comment Found

Related InterviewSolutions