Back to QuestionsPractice with This Question
Longest Increasing Subsequence (LIS)
86K views•Asked at Netflix•
Medium
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
Practice answering orally or with text to get instant AI feedback.