Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
821 views
in Online Assessments by Expert (46,090 points) | 821 views

1 Answer

0 like 0 dislike

2. The size of the longest incresing subsequence

Given an array like {1,1,3,2,6,4,1,7}, find the longest increasing subsequence. In this case it is 4, {1, 3, 6, 7}.

If there is no increasing subsequence, return 1. E.g. arr = {5,3,1}, return 1.

by Expert (46,090 points)