Longest Increasing Subsequence
Find the longest increasing subsequence from an array of numbers.
Example:
The optimal solution is a DP + binary search solution with time complexity O(NlogN)
and space complexity O(N)
.
Problems
1671. Minimum Number of Removals to Make Mountain Array (Hard): a great bidirectional extension of this problem.
Last updated