Back to Questions

Longest Increasing Subsequence (LIS)

86K viewsAsked 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.

Practice with This Question