Vidyalelo
Data Structure · Q63

Dynamic Programming in Data Structures

Programming · Data Structure · question 63

Q63

In the brute force implementation to find the longest increasing subsequence, all the subsequences of a given sequence are found. All the increasing subsequences are then selected and the length of the longest subsequence is found. What is the time complexity of this brute force implementation?

A.
O(n)
B.
O(n2)
C.
O(n!)
D.
O(2n)
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board