Loading repovive.com/problems/classics/36
Given an array of n integers, find the length of the longest strictly increasing subsequence.
A subsequence is a sequence derived by deleting some or no elements without changing the order of remaining elements. The subsequence must be strictly increasing (each element is greater than the previous one).
length of LIS
8 10 9 2 5 3 7 101 18
For this input, the required output is 4.
4
5 1 2 3 4 5
For this input, the required output is 5.
5
5 5 4 3 2 1
For this input, the required output is 1.
1