Back to Question
Longest Increasing Subsequence (LIS)
Question Explain
Given an integer array `nums`, return the length of the longest strictly increasing subsequence. Can be solved with $O(n^2)$ DP or $O(n \log n)$ using patience sorting.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.