Write a program to find the longest increasing subsequence (LIS) in an array of numbers.
HardProblem Statement
Write a program to find the longest increasing subsequence (LIS) in an array of numbers.
Sample Input
[10, 22, 9, 33, 21, 50, 41, 60, 80]
Sample Output
Longest Increasing Subsequence: 6
Limits
Time: 2s · Memory: 256 MB