Why the faster version is faster
The longest increasing subsequence has a quadratic DP and an
O(n log n) method that keeps a list of tail values.
What does the faster method stop doing?
The longest increasing subsequence has a quadratic DP and an
O(n log n) method that keeps a list of tail values.
What does the faster method stop doing?