Return the length of the longest strictly increasing subsequence of nums (elements keep their relative order but need not be adjacent).
nums
nums = [10,9,2,5,3,7,101,18]
4
Why
[2,3,7,101]
nums = [0,1,0,3,2,3]
1 <= nums.length <= 2500 -10^4 <= nums[i] <= 10^4
Topics
Implement lengthOfLIS in the editor and return the answer — printing it is never graded.
lengthOfLIS
Problem 90 of 1146 in the arena