Step 1/0
Custom array:
Complexity
Best:O(n²)
Average:O(n²)
Worst:O(n²)
Space:O(n)
Description
Finds the longest subsequence of a sequence in which the elements are in strictly increasing order.
When to use
Patience sorting, stock trading problems, chain problems, patience game analysis.